Fix Windows PowerShell updated your execution policy successfully, but the setting is overridden by a policy defined at a more specific scope

powershell the setting is overridden by a policy defined at a more specific scope

While setting my ExecutionPolicy to Unrestricted, I got the following error: Set-ExecutionPolicy : Windows PowerShell updated your execution policy successfully, but the setting is overridden by a policy defined at a more specific scope. Due to the override, your shell will retain its current effective execution policy of Restricted. I was trying to run the …

Read moreFix Windows PowerShell updated your execution policy successfully, but the setting is overridden by a policy defined at a more specific scope

Fix File cannot be loaded because running scripts is disabled on this system in Powershell

File cannot be loaded because running scripts is disabled on this system

When you try to run a Powershell script (ps1), you may face the following error: “File cannot be loaded because running scripts is disabled on this system.” This blog post explains: why you get this error. what your options are to keep Powershell safe. how to fix it. In a hurry? It’s not necessary to …

Read moreFix File cannot be loaded because running scripts is disabled on this system in Powershell

Error Login-PowerBIServiceAccount Could not load type ‘System.Runtime.InteropServices.OSPlatform’

Error Login-PowerBIServiceAccount Could not load type 'System.Runtime.InteropServices.OSPlatform' 1

After having installed the PowerBI module for Powershell, I got this ‘System.Runtime.InteropServices.OSPlatform’ error Login-PowerBIServiceAccount : Could not load type ‘System.Runtime.InteropServices.OSPlatform’ from assembly ‘netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’. The same error occurred with cmdlet Connect-PowerBIServiceAccount. It appeared to be a dependency problem with .NET Framework 4.6. Unfortunately, you are required to download and install .NET 4.7 to …

Read moreError Login-PowerBIServiceAccount Could not load type ‘System.Runtime.InteropServices.OSPlatform’

Fix: Start-ADSyncSyncCycle : Retrieving the COM class factory for remote component with CLSID {835BEE60-8731-4159-8BFF-941301D76D05}

Fix: Start-ADSyncSyncCycle : Retrieving the COM class factory for remote component with CLSID {835BEE60-8731-4159-8BFF-941301D76D05} 2

Helpdesk users with limited administrative privileges may encounter the follow error when running the Start-ADSyncSyncCycle cmdlet: PS C:\WINDOWS\system32> Start-ADSyncSyncCycle Start-ADSyncSyncCycle : Retrieving the COM class factory for remote component with CLSID {835BEE60-8731-4159-8BFF-941301D76D05} from machine failed due to the following error: 80070005 To sync Azure AD, you need to be a member of the ADSyncOperators local …

Read moreFix: Start-ADSyncSyncCycle : Retrieving the COM class factory for remote component with CLSID {835BEE60-8731-4159-8BFF-941301D76D05}

Get-SPOUser : No connection available. Use Connect-SPOService before running this CmdLet.

Get-SPOUser : No connection available. Use Connect-SPOService before running this CmdLet. 6

To run cmdlets on SharePointOnline, you first need to connect to the SPOService. If you don’t this error will return:

The error is pretty obvious. But to solve No connection available. Use Connect-SPOService before running this CmdLet , you must run Connect-SPOService which may lead to another bunch of errors :) I’ve summed up the …

Read moreGet-SPOUser : No connection available. Use Connect-SPOService before running this CmdLet.