windows-server-2008 – 为什么我不能在Powershell中导航Active
发布时间:2020-12-14 00:21:21 所属栏目:Windows 来源:网络整理
导读:我有一个AD:驱动器,它应该允许我从Power shell中浏览活动目录.但是当我尝试使用它时,它不会让我超越根.从我所看到的,给定的命令应该工作,但它们失败了. PS AD: lsName ObjectClass DistinguishedName---- ----------- -----------------company domainDNS
我有一个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
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |