Creating an SDK script
After working with the XenDesktop SDK through a PowerShell window, you might want to build a script to execute the cmdlets. Scripts are more powerful than the command-line interface because you can have multiple cmdlets in a script and can execute them by running the script. If you are a third-party vendor integrating with XenDesktop, scripts are very important for you.
You can create scripts by reverse engineering; that is, using the ones that are used by XenDesktop.
To create scripts, perform the following steps:
Open the Citrix Studio console.
Perform the task that you want to replicate in a script in the Studio UI.
Retrieve the log of the SDK operations that was made by Studio to perform the task.
Reverse engineer the commands and understand the contents.
Create your own script using the log as an inspiration.
Note
You can use variables in scripts. You can find out more about PowerShell scripting on the Microsoft website at http://technet.microsoft.com/en-us/scriptcenter...