This project is read-only.


Error on installing Active Directory Content Pack


I'm using the latest versions of the ContentPackInstaller executable as well as the Active Directory zip. When I run the executable and go to the part where I'm adding the Active Directory zip and hitting install (Step 9e in the documentation) I get an error saying "An error occurred while trying to load the system Windows PowerShell snap-ins"

I'm attaching the screen shot of the error message as well.

file attachments

Closed Jun 27, 2013 at 9:09 PM by iasanders
Did you have an internet connection to the VM the script runs the following to enable .NET3.5

Add .Net 3.5

DISM /Online /Enable-Feature /FeatureName:NetFx3 /All

But it requires an internet connection for the installation...


iasanders wrote Jun 11, 2013 at 6:11 PM

Hi Ashahidi.
  1. Did you Right Click on PowerShell and Run as Administrator the set the execution policy?
    Set-ExecutionPolicy RemoteSigned then type Y and click enter
  2. Did you right Click on the ContentPackInstaller.exe and run as an administrator?
  3. What OS are you running we are only supporting Windows Server 2012 now due to new features like naming the server and promoting to a DC with DNS, all FSMO Roles, and extending the time required for password changes to 3650 days
  4. Did you watch the Video?

ashahidi wrote Jun 11, 2013 at 6:52 PM

1) Yes, I set the execution policy as mentioned in the documentation.

2) Tried running the executable as administrator as you mentioned but to no avail.

3) I'm running Windows Server 2012

4) I looked through the video and it seems like I'm set up correctly but right after it asks for the path (which I leave to the default value), I get the error when I press OK after that when it should start the actual install.

iasanders wrote Jun 11, 2013 at 11:53 PM

Hi Ashahidi,

You have to run the ContentPackInstaller App as an Administrator. Are you saying when you right Click on the ContentPackInstaller App "Run As Administrator" does not exist.

You may be missing a PowerShell Config File

Modify (or create) $pshome__powershell.exe.config__ so that it contains the following:
<?xml version="1.0"?>
<startup useLegacyV2RuntimeActivationPolicy="true"> 
    <supportedRuntime version="v4.0.30319"/> 
    <supportedRuntime version="v2.0.50727"/> 

Additional, Setup Notes:
Locations and files are somewhat platform dependent; however will give you an inline gist of how to make the solution work for you.
  • •You can find PowerShell's location on your computer by executing cd $pshome in the Powershell window (doesn't work from DOS prompt). •Path will be something like (example) C:\Windows\System32\WindowsPowerShell\v1.0\
  • •The filename to put configuration in is: powershell.exe.config if your PowerShell.exe is being executed (create the config file if need be).
You can run the install.ps1 file through PowerShell and you will get a better idea of the errors on the screen.. Open PowerShell as an Administrator > go to C:\Content Packs\Packs\Active Directory Demo 15.2.\ then run



ashahidi wrote Jun 12, 2013 at 4:47 PM

The running as an Admin option does exist for the .exe file. I just meant that I tried running it that way and still ran into the same error.

I was able to find the config file mentioned and noticed that mine only had an entry for version 4.0. I tried to add the other one but when I try to save I get a message saying Access Denied.

I also tried to run the installer via PowerShell as you mentioned and it looks like the error is around adding the Quest.ActiveRoles.ADManagement snap in. The official error message stats no snap-ins have been registered for Windows Powershell version 3.

Is the snap-in mentioned a separate download?

Thanks for your help!

iasanders wrote Jun 12, 2013 at 7:06 PM


Sounds like you may not be getting ,NET 3.5 installed.

Open PS as Admin and run>
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All
to install .NET 3.5
Then run


without prompts

C:\Demos\ActiveDirectory\PowerShell\ActiveRolesManagmentShell_x64.msi /quiet.

Now test the script again... Also you are running the x64 version of the OS correct???

wrote Jun 17, 2013 at 9:14 PM

ashahidi wrote Jun 17, 2013 at 9:14 PM

Yes, I am running the x64 of the OS.

I went back and noticed that I did have .NET 3.5 installed. I also noticed that I was running Powershell 3.0. Once I installed Powershell 2.0, I was able to successfully run the ActiveRolesManagmentShell executable mentioned above.

I then went back to run the script in Powershell and while I didn't get any explicit errors, I got error messages saying "Problem username" and then the name of that user. I've attached a screenshot that shows what I see.

wrote Jun 27, 2013 at 9:09 PM