Programming Tutorials

xxxx cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.

By: Ashley in Office365 Tutorials on 2012-01-12  

While running any of the commands in your windows Powershell for Office 365 if you encounter this error: xxxx cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details. then follow these steps to resolve it.

In your powershell first check the current policy and then change it to unrestricted as follows:

PS C:\Windows\system32> Get-ExecutionPolicy
Restricted
PS C:\Windows\system32> Set-Executionpolicy -ExecutionPolicy Unrestricted

You will see something like this.

Execution Policy Change
The execution policy helps protect you from scripts that you do not trust.
Changing the execution policy might expose you to the security risks described
in the about_Execution_Policies help topic. Do you want to change the execution
 policy?
[Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"): Y
PS C:\Windows\system32> Import-PSSession $Session

ModuleType Name                      ExportedCommands
---------- ----                      ----------------
Script     tmp_c70b4563-208a-486f... {Set-RoleGroup, Set-RMSTrustedPublishin...

Now you can try to run your command that showed the error in the first place.






Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

Most Viewed Articles (in Office365 )

Moving changes from a development environment (sandbox) to a production environment in Dynamics 365

Is autodiscover CNAME a must in Office 365

Microsoft Flow to sync data from SharePoint list update/delete records to Dataverse Table

365 office login (office 365 login)

What is Office 365 Midsize Business Plan?

What is Office 365 Small Business Premium?

The user's Outlook Live mailbox is full.

Steps to create Microsoft Flow to sync data from SharePoint list to Dataverse Table

Change primary e-mail address of a Office 365 user or group

How to configure Outlook in a staged migration of Office 365

Copy Power Automate Flows from one environment to another

Error: "the current user is required to be a builtin\administrator directory sync - Office 365 Directory Sync

xxxx cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.

What is Ofice 365 Home Premium

The user's mailbox has already been migrated.

Latest Articles (in Office365)

Copy Power Automate Flows from one environment to another

Moving changes from a development environment (sandbox) to a production environment in Dynamics 365

Microsoft Flow to sync data from SharePoint list update/delete records to Dataverse Table

Steps to create Microsoft Flow to sync data from SharePoint list to Dataverse Table

ADFS and ADFS Proxy in Windows Server 2012

365 office login (office 365 login)

Configure SSO for a domain with ADFS - Convert a domain to a federated domain in Office 365

What is Office 365 Small Business Premium?

What is Ofice 365 Home Premium

What is Office 365 Midsize Business Plan?

Migration from on-premise exchange 2003 to Office 365

Create Word, Excel, PowerPoint using Office Web Apps in Office 365

On-premise Exchange and Lync Online integration

Email limits and message limitations in Office 365

Migrating SharePoint WSS2.0 site to SharePoint Online and Backup the SharePoint Online