wordpress   发布时间:2022-04-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了windows-server-2008 – 为什么我不能在Powershell中导航Active Directory?大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

我有一个AD:驱动器,它应该允许我从Power sHell中浏览活动目录.但是当我尝试使用它时,它不会让我超越根.从我所看到的,给定的命令应该工作,但它们失败了. PS AD:\> ls Name ObjectClass DisTinguishedName ---- ----------- ---
我有一个AD:驱动器,它应该允许我从Power shell中浏览活动目录.但是当我尝试使用它时,它不会让我超越根.从我所看到的,给定的命令应该工作,但它们失败了.
PS AD:\> ls

Name                 ObjectClass          DisTinguishedName
----                 -----------          -----------------
company              domainDNS            DC=company,DC=com
Configuration        configuration        CN=Configuration,DC=company,DC=com
scheR_325_11845@a               dMD                  CN=scheR_325_11845@a,CN=Configuration,DC=com
ForestDnsZones       domainDNS            DC=ForestDnsZones,DC=com
DomainDnsZones       domainDNS            DC=DomainDnsZones,DC=com

PS AD:\> cd scheR_325_11845@a
Set-LOCATIOn : CAnnot find path 'AD:\scheR_325_11845@a' because it does not exist.
At line:1 char:3
+ cd <<<<  scheR_325_11845@a
    + CategoryInfo          : ObjectNotFound: (AD:\scheR_325_11845@a:string) [Set-LOCATIOn],ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerSHell.Commands.SetLOCATIOnCommand

PS AD:\> cd scheR_325_11845@a
Set-LOCATIOn : CAnnot find path 'AD:\scheR_325_11845@a' 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 scheR_325_11845@a
Get-ChildItem : CAnnot find path '//RootDSE/scheR_325_11845@a' 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-server-2008 – 为什么我不能在Powershell中导航Active Directory?全部内容,希望文章能够帮你解决windows-server-2008 – 为什么我不能在Powershell中导航Active Directory?所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。