Quantcast
Channel: Exchange Server 2013 - General Discussion forum
Viewing all articles
Browse latest Browse all 4521

Powershell script for disabling accounts

$
0
0

I am trying to find a powershell script to disable 500 exchange accounts from an excel sheet.  I need to use the following

Set-Mailbox -Identity test -HiddenFromAddressListsEnabled $true

and

Set-CASMailbox -Identity test -MAPIEnabled $false -OWAEnabled $false -ActiveSyncEnabled $false -PopEnabled $false -IMAPEnabled $false

Any help will be appreciated.

Thanks


Viewing all articles
Browse latest Browse all 4521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>