To issue remote Shell commands from the AirWatch Console sever, Windows environment needs to be installed and configured with PowerShell. By default the execution policy on Windows 2008 is set to Restricted script execution.
If your deployment consists of an on-premise AirWatch server with Office 365, you must configure the Set-ExecutionPolicy on the AirWatch server.
To configure PowerShell on AirWatch server:
- Change the script execution mode from Restricted to RemoteSigned using the below Set-ExecutionPolicy command.
PS C:\Windows\system32> Set-ExecutionPolicy RemoteSigned
- Test the configured PowerShell by connecting to the server-side session. For more information on connecting to the server-side session, see Server-Side Session Commands.
Please note that if VMware Enterprise Systems Connector is not in use, then, both the Console and the Device Services server requires PowerShell connectivity to the Exchange server.