Citrix PVS and PowerShell: Registering McliPSSnapIn

If you haven’t noticed yet Carl Webster is building a script selection to document your Citrix environment on his website: 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”


For 64bits Windows:

[codesyntax lang=”winbatch” lines=”no” container=”pre_table”]



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”]



The following two tabs change content below.

Kees Baggerman

Kees Baggerman is a Staff Solutions Architect for End User Computing at Nutanix. Kees has driven numerous Microsoft and Citrix, and RES infrastructures functional/technical designs, migrations, implementations engagements over the years.


  1. Joachim says:


    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.


  2. Randy White says:

    After you get it to register you must then add the snappins
    Add-PSSnapin mclipssnapin

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.