问题描述
因此,我试图使用Powershell来自动化一些我想做的任务。我们构建了一个AD工具,但是它非常适合查找。
AD对象在另一个域中,它告诉我:
Get-Adobject : Unable to contact the server. This may be because this server does not exist,it is currently down,or it does not have the Active Directory Web Services running.
服务器运行ADWS很好,因为我使用LDAP和其他工具来浏览它。
它确实在该服务器上使用了不同的凭据,并即时将它们传入。
这是我的代码的样子。经过编辑。
$secpasswd = ConvertTo-securestring "Oher Domain Password" -AsPlainText -Force
$mycreds = New-Object System.Management.Automation.PSCredential ("Other Domain Username",$secpasswd)
Get-Adobject -Filter "" -Server "My other domain Server" -Credential $mycreds
任何帮助都很好
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)