How to allow Execution of PowerShell Scripts on Windows 7?

Powershell windows 7

Windows PowerShell is Microsoft’s task automation framework, consisting of a command-line shell and associated scripting language built on .NET Framework. In PowerShell, administrative tasks are generally performed by cmdlets (pronounced command-lets), which are specialized .NET classes implementing a particular operation. Sets of cmdlets may be combined together in scripts, executable (which are standalone applications), or by instantiating regular .NET classes.

By default, the execution of PowerShell scripts is disabled in Windows 7. This will prevent you from not only executing any of your own scripts, but also will prevent the Windows PowerShell Modules (located in Administrative Tools in the Control Panel) from working.

Steps to allow Execution of PowerShell Scripts on Windows 7

1. Click on start and search for accessories.

2. Now search for Windows Powershell, select Windows Power Shell.

3. Select the shortcut of powershell and right click on it and click on the option of Run as Administrator. Click on Yes.

4.To change the script execution policy, use the Set-ExecutionPolicy cmdlet.
Input “Set-ExecutionPolicy unrestricted” and press Enter on your keyboard.

5. You will be prompted that whether you want to change the script execution policy or not. Press Y from your keyboard.
And then press Enter.

6. Windows Power Shell Script execution is now enabled.

Anik is an IT professional and Data Science Enthusiast. He loves to spend a lot of time testing and reviewing the latest gadgets and software. He likes all things tech and his passion for smartphones is only matched by his passion for Sci-Fi TV Series.
Exit mobile version