Set-ExecutionPolicy failed
When I try to connect to Office 365, I receive a message that the scripts are restricted (I am trying to load the LyncOnline Module). When I type set-ExecutionPolicy RemoteSigned and press enter, nothing happens. Then I type in Get-ExecutionPolicy and I still see "Restricted"
July 1st, 2015 9:41pm

O365 is a restricted shell.  You can only use the CmdLets that are imported.

Free Windows Admin Tool Kit Click here and download it now
July 1st, 2015 10:16pm

Find you imported module and ist the commands.

PS C:\scripts> get-module

ModuleType Version    Name
---------- -------    ----
Manifest   3.1.0.0    Microsoft.PowerShell.Management
Manifest   3.0.0.0    Microsoft.PowerShell.Security
Manifest   3.1.0.0    Microsoft.PowerShell.Utility
Manifest   3.0.0.0    Microsoft.WSMan.Management
Script     1.0        tmp_rg00rcnf.g0u

PS C:\scripts> get-command -Module tmp_rg00rcnf.g0u

July 1st, 2015 10:18pm

but when I try to import, it fails due to the restrictions that I can't change
Free Windows Admin Tool Kit Click here and download it now
July 2nd, 2015 8:26am

I found a solution. I changed settings via group policy and it worked
  • Marked as answer by Aravil1 18 hours 17 minutes ago
July 2nd, 2015 8:53am

I found a solution. I changed settings via group policy and it worked
  • Marked as answer by Aravil1 Thursday, July 02, 2015 12:52 PM
Free Windows Admin Tool Kit Click here and download it now
July 2nd, 2015 12:52pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics