Search in:

Powershell (Getting Started)

Powershell is a versatile, powerful script language that underpins all modern (win8,8.1,10 & Server 2012 & R2) operating systems, first things first, run PowerShell (or ISE as an administrator).

Advantages of ISE are that it like visual studio will autocomplete the command you are typing (or given a selection multiples start with the same syntax), in PowerShell command you have to press tab to autocomplete to command, pressing tab again will cycle any commands available from the stem.

    Common commands

First command you should do is: update-help this will download the latest help files from Microsoft.

Next you’ll need to set you execution policy, the stem of the command is: set-executionpolicy and one of the folowing:

  1. Restricted – No scripts can be run. Windows PowerShell can be used only in interactive mode.
  2. AllSigned – Only scripts signed by a trusted publisher can be run.
  3. RemoteSigned – Downloaded scripts must be signed by a trusted publisher before they can be run.
  4. Unrestricted – No restrictions; all Windows PowerShell scripts can be run.