|

Citrix PVS and PowerShell: Registering McliPSSnapIn

2 min read

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.

carlw_pvs

 

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).

McliPSSnapIn

 

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:

“C:\Windows\Microsoft.NET\Framework64\v2.0.50727\installutil.exe” “C:\Program Files\Citrix\Provisioning Services Console\McliPSSnapIn.dll”

 

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.

carlw_pvs2

 

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:

installutil.exe McliPSSnapIn.dll

 

The following two tabs change content below.

Kees Baggerman

Kees Baggerman is Senior Technical Director — Performance & Solutions Engineering R&D at Nutanix, where he leads a global team responsible for defining how enterprise applications are delivered on the Nutanix platform. A former Citrix Technology Professional and NVIDIA Enterprise Platform Advisor, he has spent 15+ years driving EUC strategy and technical direction across architecture, product, and customer success. He has been writing here since 2011 — sharing what he learns at the intersection of platform engineering and enterprise IT.
Kees Baggerman

Kees Baggerman

Senior Technical Director at Nutanix - Former Citrix CTP - NVIDIA Enterprise Platform Advisor - 15+ years in EUC

Kees Baggerman is Senior Technical Director — Performance & Solutions Engineering R&D at Nutanix, where he leads a global team responsible for defining how enterprise applications are delivered on the Nutanix platform. A former Citrix Technology Professional and NVIDIA Enterprise Platform Advisor, he has spent 15+ years driving EUC strategy and technical direction across architecture, product, and customer success. He has been writing here since 2011 — sharing what he learns at the intersection of platform engineering and enterprise IT.

Similar Posts

2 Comments

  1. 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

Leave a Reply

Your email address will not be published. Required fields are marked *

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