如何在当前域的当前默认作用域之外运行cmdlet "get-mailbox“?
当我运行get-mailbox -OrganizationalUnit bob.com/bobsage时,我收到一条错误消息: Get-mailbox:请求的搜索根'rss.com/rsstoilet‘不在当前的默认作用域'ens.com’中。无法在当前默认范围之外执行搜索。
提前感谢
发布于 2009-01-06 09:14:24
尝试设置此全局变量:
$AdminSessionADSettings.ViewEntireForest = $True
或者使用Set-ADServerSettings -ViewEntireForest $True
或者在cmdlet级别上进行设置:
Get-Mailbox -IgnoreDefaultScope
发布于 2009-01-05 23:52:15
我非常确定错误消息是准确的-它不能执行超出当前默认范围的搜索。您需要更改在其中运行命令的作用域。
发布于 2010-03-24 19:10:57
如果使用第二个选项(-ignoredefaultscope),请确保将对象的DN作为参数传递给-Identity。
例如: Get-Mailbox -IgnoreDefaultScope -Identity "cn=username,ou=ouname,dc=domainname,dc=com“
谢谢,Sitaram Pamarthi
www.techibee.com
https://stackoverflow.com/questions/414932
复制相似问题