Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 1.0 » Powershell

Powershell - Powershell 1.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Powershell

Description
Launch a powershell session

Usage


Options


Example(s)
PowerShell.exe -PSConsoleFile "C:\scripting\MyShell.psc1" -Command ". 'MyScript.ps1'"

Display the security event log:

powershell -command {get-eventlog -logname security}

Or the same thing but calling powershell from the CMD shell:

powershell -command "& {get-eventlog -logname security}"