Fix AD for PowerShell automactally.