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\
PowerShellVersion
from2.0
to1.0
: - Install AD cmdlets.
- Change
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell
back 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