windows-server-2008 – 为什么我不能在Powershell中导航Active Directory?

前端之家收集整理的这篇文章主要介绍了windows-server-2008 – 为什么我不能在Powershell中导航Active Directory?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个AD:驱动器,它应该允许我从Power shell中浏览活动目录.但是当我尝试使用它时,它不会让我超越根.从我所看到的,给定的命令应该工作,但它们失败了.
PS AD:\> ls

Name                 ObjectClass          DistinguishedName
----                 -----------          -----------------
company              domainDNS            DC=company,DC=com
Configuration        configuration        CN=Configuration,DC=company,DC=com
Schema               dMD                  CN=Schema,CN=Configuration,DC=com
ForestDnsZones       domainDNS            DC=ForestDnsZones,DC=com
DomainDnsZones       domainDNS            DC=DomainDnsZones,DC=com

PS AD:\> cd schema
Set-Location : Cannot find path 'AD:\schema' because it does not exist.
At line:1 char:3
+ cd <<<<  schema
    + CategoryInfo          : ObjectNotFound: (AD:\schema:String) [Set-Location],ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand

PS AD:\> cd Schema
Set-Location : Cannot find path 'AD:\Schema' because it does not exist.
(duplicate of prevIoUs error)

PS AD:\> cd company
Set-Location : Cannot find path 'AD:\company' because it does not exist.
(duplicate of prevIoUs error)

PS AD:\> ls Schema
Get-ChildItem : Cannot find path '//RootDSE/Schema' because it does not exist.
(duplicate of prevIoUs error)

PS AD:\> cd ForestDnsZones
Set-Location : Cannot find path 'AD:\ForestDnsZones' because it does not exist.
(duplicate of prevIoUs error)
您需要使用专有名称.试试cd dc = company,dc = com.请注意,此处的选项卡完成效果很好所以尝试cd dc = comp< tab>.它应该扩展到整个DN
原文链接:/windows/368668.html

猜你在找的Windows相关文章