OWA

Frequent Contributor

Hi experts
i have a csv file with mailboxes, i want to disable OWA for them. please help me with the syntax to disable OWA.

Name
user1@mydomain.com
user2@mydomain.com 

3 Replies
Try this:

Import-CSV “C:\yourfile.csv” | foreach {Set-CASMailbox -Identity $_.User -ActiveSyncEnabled $False}

Adam

can i go with the below syntax

Import-CSV “C:\yourfile.csv” | foreach {Set-CASMailbox -Identity $_.User -OWAEnabled $False}

Yeah, of course! I was thinking about AS instead :)