Download PowerShell and activate scripting

To install Microsoft PowerShell version 1.0, you must download the correct package for your version of Windows from Microsoft Download Center. Some of the packages require that you validate your copy of Windows. 

Windows Vista

Windows XP

Windows Server 2003 

To see the complete list, search for powershell at Microsoft Download Center. Version 1.o is based on .NET Framework 2.0, so that (or a later version) must be installed. Version 2 can be downloaded here, and the current version (3.5) can be downloaded here.

You can switch to fullscreen by pressing Alt+Enter, but some of the newer graphic cards does not support the mode that it changes to. PowerShell checks this before changing the mode, so nothing bad will happen if you try this.

Allow for scripting
To check if scripting is activated in PowerShell, type:

Get-ExecutionPolicy

PowerShell should say Unrestricted, but if it says Restricted, your scripts will not be executed. To change this, type:

Set-ExecutionPolicy Unrestricted

Now you can play away with your ps1-files. 

Bjud mig på en kopp kaffe (20:-) som tack för bra innehåll:

Bjud mig på en kopp kaffe (20:-) som tack för bra innehåll!

Comments

Important information: If you have not commented before, your comment will be reviewed before it is published. This means that you will not see it immediately, but I have received it. This is not because I want to filter comments, but because I want to prevent spam and advertising.

One response to “Download PowerShell and activate scripting”

  1. […] and everything. If you want to create scripts, you must give yourself permission to do so (shown here). In addition, if you are using Windows 7 or later, you must start PowerShell as an administrator […]

Leave a Reply

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