Windows Windows 8

How to Run a PowerShell Script On Windows 10, 8 and 7

Microsoft PowerShell offers -especially- for IT Pro’s an easy way to do large modifications on their networks without having to do every single computer one by one. However, Microsoft PowerShell does also have some use for normal consumer users of Windows. We, for example, use PowerShell to get your Windows Store working again or to reinstall the default Windows Apps that come with your computer.

Windows Powershell first saw the light of day in 2006 and has quickly become one of the most favorite tools for IT Pro’s. But in this article, we are going to answer the question “How to Run a PowerShell Script On Windows 10, 8 and 7”

How to Run a PowerShell Script On Windows 10, 8 and 7

Running a Windows PowerShell script is quite easy if all is well you should have a PS1 file stored on your computer.

You can simply right-click this file and then choose Run with PowerShell as shown in the image below.

Run with PowerShell

That’s it, that’s all you have to do if you want to run a PowerShell script on your computer. However be sure that you trust the creator of the script, don’t run scripts downloaded from the internet without being sure what they do! We hope this tutorial helped you on How to Run a PowerShell Script On Windows 10, 8 and 7

I don’t have Run with PowerShell as an option in the Context Menu

Be sure that you have Windows PowerShell installed on your system and that it’s active for your user. In most corporate environments you will not be able to run PowerShell scripts.

I get the following error when I try to start the script: “cannot be loaded because running scripts is disabled on this system. “

Default Windows Policy forbids running untrusted scripts. However if you run the file using the method above then the first time you should be asked if you want to run untrusted scripts. You should say Yes (a) then afterwards your script will start without this error.

Leave a Reply

Your email address will not be published. Required fields are marked *