How to move Bulk AD Users to Different OU through CSV File - Hindi

preview_player
Показать описание
Subscribe my channel and get more great TIPS & computer tutorials through Basic Computer Knowledge Channel.

How to move Bulk AD Users to Different OU through CSV File - Hindi
Рекомендации по теме
Комментарии
Автор

what about PCs? should we use ().name or ().distingushedname ?
if any can help with pcs script tyvm

wessamalenai
Автор

Great script, i needed this to move groups to different OU. Changed the UserDN value to GroupDN.

get-Module ActiveDirectory

$TargetOU = "OU=donotsync, OU=office365, DC=twincam, DC=co, DC=uk"
Import-CSV -Path "C:\temp\Groups\move.csv" | ForEach-Object {
$GroupDN = (Get-ADGroup -Identity $_.Name).distinguishedName
Move-ADObject -Identity $GroupDN -TargetPath $TargetOU
}

twincam
Автор

get-Module ActiveDirectory

$TargetOU = "OU=Mailboxes, OU=DOMAINUSERS, DC=DOMAIN, DC=CO, DC=UK"
Import-CSV -Path "C:\TEMP\AD\MOVELIST.csv" | ForEach-Object {
$UserDN = (Get-ADUser -Identity $_.Name).distinguishedName
Move-ADObject -Identity $UserDN -TargetPath $TargetOU
}

serverlabuk
Автор

can you please send the script or link to it

tompolla
Автор

Hi! Will this work with email addresses in the CSV file with the names? Any adjustments I should make?

bornbbeautifulduh