Run only scripts that you trust. (Powershell)

If you are like me you have probably run into the following error when trying to run powershell scripts. This becomes very annoying and tedious if you are running different scripts on a regular basis.

Run only scripts that you trust error

[highlight_red]”Security Warning – Run only scripts that you trust. While scripts from the Internet can be useful, this script can potentially harm your computer. Do you want to run –.ps1? [D] Do not run [R] Run once [S] Suspend [?] Help (default is “D”):[/highlight_red]

Step 1

The first thing you need to do is launch Windows Powershell.

Step 2

Then enter the following commands:

set-executionpolicy bypass

Powershell Trust Scripts

Now launch your script and enjoy not seeing that annoying message come up.

You may also like:

Install Canon ScanGear Tool This is a short guide to setting up the Canon ScanGear Tool to enable the Canon copiers to be able to scan directly from the copy machine to the compu...
Automatically Accept Meeting Requests in Microsoft... Follow the instructions below to automatically accept meeting requests and remove canceled meetings. There are instructions for both Microsoft Outlook...
A media usage rights error has occurred… The dreaded Microsoft Zune Software error. "A media usage rights error has occurred. For help fixing this problem, click Web Help. Error Code C00D1...
Deleted items folder is unavailable I noticed that my IMAP account was having issues with my upgrade from Microsoft Outlook 2007 to Microsoft Outlook 2010. I was trying to delete emails ...
Migrate email to Office 365 using WHM If you are like me, then you are simply wanting to migrate your email over to Microsoft Office 365 to take advantage of Exchange. Me and my colleague ...
READ ALSO  SQL Developer - Use tnsnames.ora file
  • Anony Mouse

    Great, now how do you this in group policy? Let’s say you manage 100 workstations. Would not be practical to do this on each one.

  • David