-
Error in the Provisioning Services 7.0 PowerShell Programmer Guide for Windows 8 and Server 2012
In updating the PVS documentation script to add support for PVS7, I ran into an issue with getting the McliPSSnapin.dll registered. This brief article explains how to resolve this issue.
The Provisioning Services 7.0 PowerShell Programmer Guide is available here.
On page 7, the instructions to install the PowerShell Snap-in are not correct for Windows 8 or Server 2012.
The original instructions work for Server 2003, Server 2008, Server 2008 R2, Windows XP, and Windows 7.
Installation of PowerShell Snap-In
The PowerShell snap-in (McliPSSnapIn.dll) can be installed using the Provisioning Server Console install.
If it later needs to be registered in PowerShell, this can be manually done by running one of the following commands at the DOS command prompt:
For 32-bit
%systemroot%\Microsoft.NET\Framework\v2.0.50727\installutil.exe McliPSSnapIn.dll
For 64-bit
%systemroot%\Microsoft.NET\Framework64\v2.0.50727\installutil.exe McliPSSnapIn.dll
The correct instructions for Windows 8 and Server 2012 are:
For 32-bit
%systemroot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe McliPSSnapIn.dll
For 64-bit
%systemroot%\Microsoft.NET\Framework64\v4.0.30319\installutil.exe McliPSSnapIn.dll
If you attempt to run the original command, you get:
That is because there is nothing in the v2.0.50727 folder.
The InstallUtil.exe utility is in the v4.0.30319 folder.
I am testing with 32-bit Windows 8, so I needed to run:
%systemroot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe McliPSSnapIn.dll
Now I can configure a remote connection to my PVS7 server and run an MCLI PowerShell command.
I hope Citrix will correct the PVS7 PowerShell Programmer Guide.
Thanks
Webster
June 29, 2013
PowerShell, PVS