SonOfStockhes
asked on
Disable mailbox with powershell
I have users in a OU which needs to have disabled their mailbox.
Since there are alot of users i want to create a powershell script to do so.
What i have come up with so far is
Get-User -OrganizationalUnit "xxx.xx/Users/Disable/" | Disable-Mailbox
My question is now.....Is it really that simple? :D
Since there are alot of users i want to create a powershell script to do so.
What i have come up with so far is
Get-User -OrganizationalUnit "xxx.xx/Users/Disable/" | Disable-Mailbox
My question is now.....Is it really that simple? :D
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I have a notepad with my fav commands. Makes life easy :)
ASKER
I think i love powershell :D