Posts Tagged PowerShell v2.0

XenServer PowerShell 101

Bookmark and Share

Over two years ago I discovered PowerShell as a very usefull scripting language to support the fully automated install and config of a Windows 2008 Office Automation domain with XenApp and RES Software products. Thanks to RES Automation Manager (back than it was still called Wisdom) I could easily build PowerShell scripts to create the required Active Directory structure, Exchange environment and use small scripts for different configurational settings. RES Automation Manager ensured I only needed to concentrate on the actual scripts, as I could configure the Tasks options to ensure the correct execution rights were used and the required snap-ins were loaded by specifying the use of a PowerShell configuration file (.psc1).

 

This blog is all about reconnecting with PowerShell as I want to explore the PowerShell SnapIn for XenServer 6.0.
A quick overview of the available commands is provided with a great poster from Björn Andersson (diversetips.se) for XenServer 6.0:

This blog will be all about the basic PowerShell commands to setup my scripting environment and slowly build up to more complex scripts for XenServer management.

Read the rest of this entry »

Tags: ,

Install the XenServer PowerShell Snapin on a 64-bits Windows OS

Bookmark and Share

As I’m discovering the CLI options I can revert to for scripting automated jobs for the XenServer 5.5 environment, I wanted to check out the new PowerShell Snapin provided by Citrix. After downloading and installing the XS-PS Windows installer I discovered that the PowerShell cmdlets were only installed for the PowerShell (X86) console and were not installed for the 64-bits console.

Fortunately for me a solution is mentioned on the XenServer SDK download page

In order to use the cmdlets in the 64-bits PowerShell Console, all you need to do is run the following command after the msi install in a command box:

C:\Windows\Microsoft.NET\Framework64\v2.0.50727>InstallUtil.exe "c:\Program File
s (x86)\Citrix\XenServerPSSnapIn\XenServerPSSnapIn.dll"

 

Read the rest of this entry »

Tags: ,