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:
- Restricted – No scripts can be run. Windows PowerShell can be used only in interactive mode.
- AllSigned – Only scripts signed by a trusted publisher can be run.
- RemoteSigned – Downloaded scripts must be signed by a trusted publisher before they can be run.
- Unrestricted – No restrictions; all Windows PowerShell scripts can be run.