Category Archives: PowerShell 3.0

Quest ActiveRoles Management Shell Download

      No Comments on Quest ActiveRoles Management Shell Download

Quest ActiveRoles Management Shell Download Quest ActiveRoles is a collection of very useful PowerShell cmdlets for Active Directory. They used to be offered for free by Quest Software (now owned by Dell), but have since after version 1.5.1 (as far as I know) started charging money for the cmdlets in… Read more »

XenApp in search of unsupported client names

      No Comments on XenApp in search of unsupported client names

XenApp can choke on client names which contain client names which contains weird characters (according to Citrix). The result can be that the search functionality, within Citrix AppCenter, doesnt come up with any users. The other manifestation of the problem can occur in the ‘Servers’-node in the farm seems to… Read more »

Simplistic way of getting memory statistics

      No Comments on Simplistic way of getting memory statistics

# $Author: berrydejager $ # $Rev: 1.0 $ # # Version control: # # 1.0 Initial version # # Functions definitions # Function GetFreeMem { Param([string]$ComputerName) Write-host “————————————————————————————” Write-host “- START SCANNING $Computername —————————————————” Write-host “————————————————————————————” Get-WmiObject -Class Win32_OperatingSystem -Namespace root/cimv2 -ComputerName . | Format-Table -Property TotalVirtualMemorySize,TotalVisibleMemorySize,FreePhysicalMemory,FreeVirtualMemory,FreeSpaceInPagingFiles Write-host “————————————————————————————” Write-host… Read more »

GetPrinterDetails

      No Comments on GetPrinterDetails

Function GetVersion{ Param ([string]$PrintServer = “localhost”) $Results = @() ForEach ($Driver in (Get-WmiObject Win32_PrinterDriver -ComputerName $PrintServer)) { $Drive = $Driver.DriverPath.Substring(0,1) $Results += New-Object PSObject -Property @{ Name = $Driver.Name Server = $Driver.PSComputername } Write-Host $Results } $Results } cls Add-PSSnapin Citrix* -ErrorAction SilentlyContinue $GetXAZone = Get-XAZone $XAZoneName = $GetXAZone.ZoneName $XAServerList… Read more »

Using PowerShell 3.0 in conjunction to PowerGUI 3.5

      No Comments on Using PowerShell 3.0 in conjunction to PowerGUI 3.5

My favourite editor for PowerShell script is definitely PowerGUI from Quest Software, Inc. This editor is very intuitive and gives you a good overview on the PowerShell environment and extensive debugging features. Recently i needed to create a script to use with AppV 5.0, which is based on PowerShell 3.0. PowerGUI has an extensive support for PowerShell 2.0 and… Read more »