This could be due to the current user having an undefined ExecutionPolicy
.
In PowerShell as Administrator, you could try the following:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
More Related Contents:
- Monitor all print queue job
- Execute PowerShell Script from C# with Commandline Arguments
- How can I determine for which platform an executable is compiled?
- Post build event execute PowerShell
- Invoking powershell cmdlets from C#
- Get Powershell command’s output when invoked through code
- PowerShell – How to Import-Module in a Runspace
- How to get Command Line info for a process in PowerShell or C#
- Calling generic static method in PowerShell
- Invoking PowerShell Script with Arguments from C#
- .ps1 cannot be loaded because the execution of scripts is disabled on this system
- Add new metadata properties to a file
- Does PowerShell compile scripts?
- Capturing Powershell output in C# after Pipeline.Invoke throws
- How to implement using statement in powershell?
- Why does Read interfere with ReadLine? [duplicate]
- How to detect Windows 64-bit platform with .NET?
- Serialize an object to XML
- Coercing floating-point to be deterministic in .NET?
- Why use simple properties instead of fields in C#? [duplicate]
- Replace Multiple String Elements in C#
- The property ‘Id’ is part of the object’s key information and cannot be modified
- How do I take the Cartesian join of two lists in c#?
- How to use a client certificate to authenticate and authorize in a Web API
- i = i++ doesn’t increment i. Why? [duplicate]
- How do I implement automatic sorting of DataGridView?
- How to resize Image in C# WinRT/winmd?
- Programmatically access the Google Chrome Home or Start page
- Process.Start(url) fails
- Performance of compiled-to-delegate Expression