Your script is blocked from executing due to the execution policy.
You need to run PowerShell as administrator and set it on the client PC to Unrestricted. You can do that by calling Invoke with:
Set-ExecutionPolicy Unrestricted
More Related Contents:
- Passing data from one desktop/web application to another desktop app
- c# asp.net delete last comma [closed]
- Finding the variable name passed to a function
- The name ‘controlname’ does not exist in the current context
- Sharing sessions across applications using the ASP.NET Session State Service
- Entity Framework Timeouts
- Read SQL Table into C# DataTable
- Plus sign in query string
- If a folder does not exist, create it
- The instance of entity type cannot be tracked because another instance of this type with the same key is already being tracked
- How to not serialize the __type property on JSON objects
- @(at) sign in file path/string [duplicate]
- Cannot convert lambda expression to type ‘string’ because it is not a delegate type [duplicate]
- How do I setup multiple auth schemes in ASP.NET Core 2.0?
- Replace the last occurrence of a word in a string – C#
- Access ASP.NET control from static [WebMethod] (JS ajax call)
- Can I set up HTML/Email Templates with ASP.NET?
- how to get mac address of client that browse web site by asp.net mvc c#
- Dynamically Added DropDownlists Are Not Firing SelectedIndexChanged Event [duplicate]
- Parsing a JSON array using Json.Net
- ASP.net Getting the error “Access to the path is denied.” while trying to upload files to my Windows Server 2008 R2 Web server
- ASP.NET Custom 404 Returning 200 OK Instead of 404 Not Found
- Font awesome inside asp button
- When to use Request.Cookies over Response.Cookies?
- ASP .NET Button event handlers do not fire on the first click, but on the second click after a PostBack
- How to create Select List for Country and States/province in MVC
- SignalR – Checking if a user is still connected
- Is there a way in Json.NET serialization to distinguish between “null because not present” and “null because null”?
- Block requests after multiple unsuccessful logins
- How do I get a directory size (files in the directory) in C#?