Richard has put together a PowerShell v2 compatibility list and noted that AD cmdlets 1.0.5 setup would not let you install on v2 CTP.
This will be fixed in the next drop of AD cmdlets but if you want to work around the issue with 1.0.5 here are the steps:
- Before running the AD cmdlets setup, go to the registry, navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\and change the value of
PowerShell\1\PowerShellEngine\
PowerShellVersionfrom2.0to1.0: - Install AD cmdlets.
- Change
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShellback to
\1\PowerShellEngine\PowerShellVersion2.0.
IMPORTANT:
- Manual registry editing is dangerous and should be exercised with extreme caution.
- PowerShell v2 is CTP and AD cmdlets have not been extensively tested on it – please don’t use this in production.
Please report any issues to PowerShell AD forum.
Tags: AD cmdlets, Active Directory, KB, Knowledge Base, Known Issues, PowerShell, PowerShell v2
Subscribe by email




1. In step 1, I think you mean, chance 2.0 to 1.0.
2. Also, the Registry key is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine, but the value entry you need to edit is the PowerShellVersion value which is actually a string value.
Fixed both typos. Thanks Thomas!