Friday, August 16, 2019

PowerShellTip: Move AD Group to another OU

 
Import-module ActiveDirectory
Get-ADGroup MyGroup | Move-ADObject -identity {$_.objectguid} -TargetPath 'ou=GroupsToDelete,dc=MyCompany,dc=com'

No comments:

Post a Comment