Forum Discussion
Rising Flight
Dec 16, 2018Brass Contributor
OWA
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 mailto:user1@mydomain.com mailto:user2@mydomain.com
Dec 16, 2018
Try this:
Import-CSV “C:\yourfile.csv” | foreach {Set-CASMailbox -Identity $_.User -ActiveSyncEnabled $False}
Adam
Import-CSV “C:\yourfile.csv” | foreach {Set-CASMailbox -Identity $_.User -ActiveSyncEnabled $False}
Adam
Rising Flight
Dec 16, 2018Brass Contributor
can i go with the below syntax
Import-CSV “C:\yourfile.csv” | foreach {Set-CASMailbox -Identity $_.User -OWAEnabled $False}
- Dec 16, 2018Yeah, of course! I was thinking about AS instead :)