Split string in Powershell

PowerShell strings have a split function that enables the simple splitting of a string into an array of strings based on a delimiter character. The example below splits based on the space character and removes any entries that have no actual content. $FullName = “John Savill ” $Names = $FullName.Split(” “,[StringSplitOptions]’RemoveEmptyEntries’) $Names would contain two …read more →

Difference between where-object and select-object

The two cmdlets perform very different things. Where-object restricts which objects are returned, for example: Get-Process | Where-Object {$_.Name -eq “WmiPrvSE”} Will only return objects whose name is WmiPrvSE. Now compare to Select-Object, e.g. Get-Process | Select-Object -Property Name, ID Returns the name and process ID for every process. You could put these together: Get-Process …read more →

Windows Installer Coordinator

Installation hangs on “Windows Installer Coordinator” When you receive a “Please wait while the application is preparing for the first use” on Citrix / Terminal server while installing an MSI: 1. Open gpedit.msc. 2. Go to Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Application Compatibility. 3. Put policy Turn off Windows Installer RDS Compatibility …read more →

Powershell – Download File

NetScaler – Command line cheat sheet

netscaler-cli-troubleshooting-cheat-sheet How do I connect? Download Putty from www.putty.org, launch, punch your NetScaler IP in the Host Name (or IP address) field and click Open. Login with your NetScaler username and password. That’s it – welcome to NetScaler CLI. You will see some commands starting with ‘#’ – these are shell commands. To enter NetScaler’s shell …read more →

IoMeter test VDI

From Atlantis Website:https://community.atlantiscomputing.com/blog/Atlantis/August-2013/How-to-use-Iometer-to-Simulate-a-Desktop-Workload.aspx   Bottlenecks for Performance in VDI Iometer is usually run from within a windows guest which is sitting upon the storage subsystem. This means that there are many layers between it and the storage as we see below: If we are to test the performance of the storage, the storage must be …read more →

Powershell – read remote registry AD computers

How to import certificate NetScaler

STEP 1 – Installing certificates Click on Configuration tab > Traffic Management > SSL > SSL Certificates Click on Install button In the Install Certificate Window, Supply the following information: –          A Certificate-Key Pair Name. –          The Certificate File Name. Browse to the location of your Server Certificate file. –          The Private Key File Name. …read more →