Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Disable mailbox with powershell

Posted on 2012-03-21
3
Medium Priority
?
2,020 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 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
Check out this step-by-step guide for using the newly updated Experts Exchange mobile app—released on May 30.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

705 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