Using the New Citrix Provisioning Services PowerShell with PVS 7.0, 7.1, 7.6 and 7.6 LTSR
September 12, 2016
I have been told that if you install the Citrix Provisioning Services (PVS) 7.7, or later, console on version 7.0 through 7.6 LTSR that you can use the new Citrix PVS PowerShell. You know, the new, real, object-oriented PowerShell. I decided to test this to see if it was true.
Before we begin, let’s get the most important question out of the way. “If I install the PVS 7.9 console on my 7.1 PVS farm, is this supported by Citrix?” Yes, it is a supported configuration. The usual warnings apply. Test first. Test in your lab first. Don’t just blindly apply this in production because you read it here without first having database and server backups. Test, test, and then test again.
If you are still using PVS 7.0 or 7,1, it is about time you upgraded.
I am going to assume you have PVS version 7.0 or 7.1 or 7.6 or 7.6 LTSR installed along with the console. I am using 7.1 with Hotfix PVS710ServerConsoleWX64004 for PVS Server and Console 7.1 x64 .
Verify the old POS PVS PowerShell works.
- Start a PowerShell session
- Type in add-pssnapin *mcli* and press enter
- Type in mcli-info version and press enter
Note: Use the following steps ONLY if you want to remove the old crappy, POS PVS PowerShell from the server. If you plan on using the PVS Assessment script, leave the old PVS PowerShell installed.
Start an elevated PowerShell session.
Use the following PowerShell commands to uninstall the old PVS PowerShell snapin.
$installutil = $env:systemroot + '\Microsoft.NET\Framework\v4.0.30319\installutil.exe' &amp;amp;$installutil -u "$($env:ProgramFiles)\Citrix\Provisioning Services Console\McliPSSnapIn.dll" $installutil = $env:systemroot + '\Microsoft.NET\Framework64\v4.0.30319\installutil.exe' &amp;amp;$installutil -u "$($env:ProgramFiles)\Citrix\Provisioning Services Console\McliPSSnapIn.dll"
Install the PVS 7.7 or later console. I installed 7.9.
Open an elevated command prompt and run the following to register the new, real, object-oriented PVS PowerShell Snapin.
%systemroot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe "%ProgramFiles%\Citrix\Provisioning Services Console\Citrix.PVS.SnapIn.dll" %systemroot%\Microsoft.NET\Framework64\v4.0.30319\installutil.exe "%ProgramFiles%\Citrix\Provisioning Services Console\Citrix.PVS.SnapIn.dll"
Open a PowerShell session and type in the following:
Add-pssnapin *citrix* Get-PVSVersion
The new (real) PVS PowerShell is now ready for use.
To give the new PVS PowerShell a full test, run version 5.xx PVS Documentation Script.
There you have it. Fully functional new PVS PowerShell on an old PVS 7.x version AND supported by Citrix.
One Response to “Using the New Citrix Provisioning Services PowerShell with PVS 7.0, 7.1, 7.6 and 7.6 LTSR”
Leave a Reply
May 25, 2017 at 3:59 pm
This is all kinds of awesome. Thanks for sharing!