RDP

Mario on December 11th, 2009

#start an remote desktop sessie
function Start-RDPSession {
param([string]$ComputerName=$(Throw "Missing computername argument!!"),
[switch]$Admin)
 
if ($Admin) {
Invoke-Expression -Command "mstsc.exe /v:$ComputerName /admin"}
else {
Invoke-Expression -Command "mstsc.exe /v:$ComputerName"}
}

Continue reading about Test with some PowerShell code