Helle All,
我打算将计算机的特定名称redirect到特定的OU,如下所示
Condition 1. Name which starts with CMP* need to move to "Com" OU Condition 2. Name which starts with LTP* need to move to "LTP" OU
请让我知道的步骤。
谢谢。
问候,
Ramasamy RS
有了Powershell,你可以做这样的事情:
Get-ADComputer -filter {*} -searchbase "OU=xx,OU=xx,DC=xx,DC=xx"| Where-Object {$_.name -like "CMP*"} | Move-ADObject -TargetPath "ou=Com,dc=xx,dc=xx"
Get-ADComputerselect您的AD的计算机。
Where-Object仅与其名称对应的通配符
Move-ADObject和最后你在新的OU你的电脑
您也可以使用get-ADComputer的filterreplacewhere-object。