Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Bulk remove AD account from DistinguishedName

$
0
0

Hi All,

I after some guidance on how to remove a bulk amount of accounts. I am using the following command and it works just fine.

Remove-ADUser -Identity "CN=Gail Moss,OU=UserAccounts,DC=XXX,DC=com"

But how i get that to import from a csv and do all the accounts at once? Any assistance would be awesome. I have found example of removing from account name but we require to use DN.

Bests

GR


Viewing all articles
Browse latest Browse all 6937

Trending Articles