Solved

Disable mailbox with powershell

Posted on 2012-03-21
3
1,883 Views
Last Modified: 2012-03-27
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
0
Comment
Question by:SonOfStockhes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
Lance_P earned 500 total points
ID: 37746945
0
 

Author Closing Comment

by:SonOfStockhes
ID: 37747150
Thanks it worked really good.

I think i love powershell :D
0
 
LVL 9

Expert Comment

by:Lance_P
ID: 37770710
I have a notepad with my fav commands. Makes life easy :)
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question