Table of Contents

Programming Languages

PowerShell



References




Grammar

Get-Command

Get-Service

Get-EventLog -logName Application -newest 15


Examples

Remote Desktop Auto Login Powershell Script

test-server1.ps1

echo "Connecting to test-server1"
$Server="xx.xx.xx.xx"
$Port="3389"
$User="Administrator"
$Password="AdminPassword"
cmdkey /add:$Server /user:$User /pass:$Password
mstsc /v:$Server:$Port