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

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...