如何使用Powershell将位置广告:设置到其他活动目录域 [英] How do I set-location ad: to a different active directory domain with Powershell
本文介绍了如何使用Powershell将位置广告:设置到其他活动目录域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用PowerShell 3在Windows 7工作站上安装了Active Directory模块,当我使用 Set-Location AD:时,它正在使用当前域。
I have the Active Directory module installed on my Windows 7 workstation using PowerShell 3 and when I use "Set-Location AD:", it is using my current domain.
是否可以将我的基本位置设置为其他域?
Is it possible to set my base location to a different domain?
Import-Module ActiveDirectory
Set-Location AD:
Get-ChildItem
(显示当前的DC信息)
(shows current DC info)
我想切换到其他AD服务器。
I would like to switch to a different AD server.
推荐答案
您可以尝试一下。假设您的域名是fabrikam.local
You can try this. Assuming your domain name is fabrikam.local
Import-Module ActiveDirectory
New-PSDrive -Name ADFAB -PSProvider ActiveDirectory -Server "servername.fabrikam.local" -Scope Global -root "//RootDSE/"
Set-Location ADFAB:
这篇关于如何使用Powershell将位置广告:设置到其他活动目录域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文