cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Etc


Reference












.

programming:pwershell:index.html



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




programming/pwershell/index.html.txt ยท Last modified: 2018/03/17 by admin