Solve PowerShell problems after a domain controller upgrade.