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:“C:\Windows\Microsoft.NET\Framework\v2.0.50727\installutil.exe” “C:\Program Files\Citrix\Provisioning Services Console\McliPSSnapIn.dll”
For 64bits Windows:[crayon-5d1d4bb449018506969695/]
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:
Latest posts by Kees Baggerman (see all)
- 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
- Updated: VM Reporting Script for Nutanix AHV with Powershell - April 8, 2019
- How to add a CD-ROM drive and mount an ISO file via powershell to an AHV-hosted VM - March 27, 2019
- How to add a nic via powershell to an AHV-hosted VM - March 25, 2019