Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

How do I disable by default ActiveSync, POP3, IMAP, etc. for a set of new mailboxes I'm creating using a CSV file?

$
0
0

This is my script so far. It is working fine - I just want to be able to disable those protocols by default when creating the mailbox.

$mailbox=import-csv C:\Downloads\NEWBIE.CSV
ForEach ($mailbox in $mailbox) {Enable-Mailbox -Identity $Mailbox.Identity -Database $Mailbox.Database -PrimarySmtpAddress $Mailbox.PrimarySmtpAddress -ManagedFolderMailboxPolicy "90 day policy" -ManagedFolderMailboxPolicyAllowed}


ExchangeGuru


Viewing all articles
Browse latest Browse all 2562

Trending Articles



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