PowerShell Tutorial
PowerShell is just some DLLs…
The PowerShell Console is just a text based interface that uses this DLL
PowerShell was developed with the .NET framework
PowerShell outputs objects
Enable execution of Scripts:
https://technet.microsoft.com/en-us/library/ee176961.aspx
- 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.
Open Power Shell as administator (right click –> run as administator), then type
Set-ExecutionPolicy RemoteSigned
Use notepad to create a file called script.ps1 with the content:
gwmi win32_operatingsystem
Execute it by typing
.\script.ps1
HTTP
Das Hypertext Transfer Protocol ist ein zustandsloses Protokoll zur Übertragung von Daten auf der Anwendungsschicht über ein Rechnernetz.
WSMan
Web Services-Management (WS-Management) is a DMTF open standard defining a SOAP-based protocol for the management of servers, devices, applications and various Web services.