ProjNet
asked on
Deleting multiple AD User accounts from CSV file
Hello,
I need to delete AD users along with their Exchange accounts via the attached CSV file, I have the SANaccountname field available, I have Exchange 2007 with AD 2003
I would guess the best way to do this is via Powershell on the Exchange server, can you assist?
Userstobedeleted.csv
I need to delete AD users along with their Exchange accounts via the attached CSV file, I have the SANaccountname field available, I have Exchange 2007 with AD 2003
I would guess the best way to do this is via Powershell on the Exchange server, can you assist?
Userstobedeleted.csv
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks guys,
Jjmck, this worked beautiful, only thing is the notification asking if I wanted to apply these changes kept appearing per account, it gives me an option to say yes to all (A), but it kept constantly coming back for each account, any ideas?
Jjmck, this worked beautiful, only thing is the notification asking if I wanted to apply these changes kept appearing per account, it gives me an option to say yes to all (A), but it kept constantly coming back for each account, any ideas?
Add -confirm: $false to the end of the remove-mailbox command.
-JJ
-JJ
http://randomtechminutia.wordpress.com/2012/05/03/powershell-script-to-delete-exchange-mailboxes-in-mass/
It will disable mailbox and delete user as well from AD for the list of users
Mahesh