ps rdp

Set-ExecutionPolicy -ExecutionPolicy UNRESTRICTED -Scope CurrentUser



param($minutes = 60)
$myshell = New-Object -com "Wscript.Shell"
for ($i = 0; $i -lt $minutes; $i++) {
 Start-Sleep -Seconds 58.5
 $myshell.sendkeys("andres\n {ENTER}")
}

Publicado por