-
Notifications
You must be signed in to change notification settings - Fork 842
README_Disable ExchangeOnlineMobileAccess
#Disable Exchange Online Mobile Access
This PowerShell script will connect to Exchange Online and configure it to restrict mobile device access to Exchange Online. It will disable OWA for Mobile Devices. It will also disable all mobile ActiveSync access to Exchange Online except for the "Outlook for iOS and Android" mobile app.
###Pre-requisites
- An Office 365 account that in the Exchange Admin role 'Recipient Management' or 'Organization Managment'
###Examples
-
Open a PowerShell console.
From the Run dialog type PowerShell
-
Change directory to the location where the PowerShell Script is saved.
Example: cd C:\PowerShellScripts
-
Run the Script. With no parameters specified the script will run and prompt you for your Office 365 Admin Credentials
Type . .\Disable-ExchangeOnlineMobileAccess Press Enter and then if Microsoft Office is installed locally it should display. By including the additional period before the relative script path you are 'Dot-Sourcing' the PowerShell function in the script into your PowerShell session which will allow you to run the function from the console.
-
Run the Script
Type $credentials = Get-Credential Type Disable-ExchangeOnlineMobileAccess -Credentials $credentials
-
Run the Script without prompting
$userName = "admin@tenant.onmicrosoft.com" $securedPassword = ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force $credentials = New-Object System.Management.Automation.PSCredential ($userName, $securedPassword) Disable-ExchangeOnlineMobileAccess -Credentials $credentials
Copyright © 2015 Microsoft Corporation - Project is released under the terms of the MIT License
Home
New Scripts
Completed Scripts
- Office-ProPlus-Deployment
- Office-ProPlus-Information
- Office-ProPlus-Management
- Office-ProPlus-Preparation
- Office-ProPlus-Updates
Information