Some code snippets for the shiny powershell …

Microsoft Techlibrary: http://technet.microsoft.com/en-us/library/bb978526.aspx

# Stop a process
stop-process -processname someprogram

# Start program
[Diagnostics.Process]::Start("C:\Program Files (x86)\version0815\someprogram.exe") 

first steps

Enable execution of scritps

To enable the execution of scritps start the powershell as administrator, then enter the following command:

set-executionpolicy RemoteSigned

Run a script

PS C:\Users\baecker\Documents>.\script.ps1

note the .\ as a prefix.

windows/powershell.txt · Last modified: 2010-12 by tb
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready