If you haven’t noticed yet Carl Webster is building a script selection to document your Citrix environment on his website: CarlWebster.com and he was looking for testers for his scripts. I volunteered to run some scripts for Carl to complete them and make sure Carl got the input he needed.
After his call on twitter for testers I asked him for the script to get it running on my lab environment.
After installing PVS7 and configuring some bogus information I tried to run the script but it gave me an error about missing the McliPSSnapIn (which is good as the script needs this PSSnapIn).
I found the following blogpost PVS PowerShell McliPSSnapIn which basically says:
Start a command prompt with Run as Admin and run the following commands
For 32bits Windows:
[codesyntax lang=”winbatch” lines=”no” container=”pre_table”]
“C:\Windows\Microsoft.NET\Framework\v2.0.50727\installutil.exe” “C:\Program Files\Citrix\Provisioning Services Console\McliPSSnapIn.dll”
[/codesyntax]
For 64bits Windows:
[codesyntax lang=”winbatch” lines=”no” container=”pre_table”]
1 “C:\Windows\Microsoft.NET\Framework64\v2.0.50727\installutil.exe” “C:\Program Files\Citrix\Provisioning Services Console\McliPSSnapIn.dll”[/codesyntax]
As I’m running PVS on a Windows 2008R2 system I used the second command to register the .dll but I got an error stating the path could not be found but the weird thing was that I was able to change the dir in DOS to the right path and the exe was there.
I didn’t wanted to let this take up a lot of time so I reverted back to one of my demo environments and I got the same weird error. I tried to copy the DLL into the v2.0.50727 directory and run the registration command from there, that worked but I got a couple of errors stating that some DLL’s could not be found. In the end the solution that did work for me (and it’s not a pretty one but as it was my lab environment I wasn’t really bothered) was to copy the installutil.exe to “C:\Program Files\Citrix\Provisioning Services Console\” directory and run:
[codesyntax lang=”winbatch” lines=”no” container=”pre_table”]
1 |
installutil.exe McliPSSnapIn.dll |
[/codesyntax]
Kees Baggerman
Latest posts by Kees Baggerman (see all)
- Nutanix AHV and Citrix MCS: Adding a persistent disk via Powershell – v2 - November 19, 2019
- Recovering a Protection Domain snapshot to a VM - September 13, 2019
- Checking power settings on VMs using powershell - September 11, 2019
- Updated: VM Reporting Script for Nutanix with Powershell - July 3, 2019
- Updated (again!): VM Reporting Script for Nutanix AHV/vSphere with Powershell - June 17, 2019
Hi
Instead of copying the installutil.exe i changed the directory. The important thing is to add “.\” in front of the program.
PS C:\windows\Microsoft.NET\Framework64\v2.0.50727> .\installutil.exe “C:\Progra
m Files\Citrix\Provisioning Services Console\McliPSSnapIn.dll”
That worked for me.
Regards
Joachim
After you get it to register you must then add the snappins
Add-PSSnapin mclipssnapin