问题
Im trying to execute bellow command with the alternate credentials in my power-shell script.-credential $Cred
is not working, below is the sample command.
New-GPLink -Name "Security_Policy" -Target "OUPath"
来源:https://stackoverflow.com/questions/61682263/how-to-pass-alternate-credentials-to-active-directory-gpo-command-new-gplink