OWA

Highlighted
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
Highlighted
Try this:

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

Adam
Highlighted

can i go with the below syntax

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

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