我试图用C#
如何针对域运行powershell脚本?
Get-ADUserResultantPasswordPolicy user1
它返回上DOMAIN1 USER1这是我目前的域值,通过我的应用程序运行下面的PowerShell命令。
当我尝试读取值上域2一个用户2:
Get-ADUserResultantPasswordPolicy domain2\user2
其投掷例外
"Cannot find an object with identity:'user2' under:'DC=domain2,DC=com'.
有没有去点PowerShell的其他领域和读取的数据域?
Andrey..actually您好我没有知识的PowerShell中,你可以请就如何使用PowerShell脚本 – sam