/ _ \ \_\(_)/_/ _//"\\_ more on JOHLEM.net / \ 0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0 Remote Desktop (RDP) Commands: -------------------------------- 1. **mstsc** (Command Prompt) Launch Remote Desktop. Syntax: mstsc /v:ComputerName 2. **mstsc** with Credentials Launch Remote Desktop with specified credentials. Syntax: mstsc /v:ComputerName /admin /u:Username /p:Password Example: mstsc /v:192.168.1.10 /admin /u:Administrator /p:MyPassword123 3. **Enable-PSRemoting** Enable PowerShell remoting. Syntax: Enable-PSRemoting -Force 4. **Enter-PSSession** Start a remote PowerShell session. Syntax: Enter-PSSession -ComputerName "RemoteComputer" 5. **Invoke-Command** Run a command on a remote computer. Syntax: Invoke-Command -ComputerName "RemoteComputer" -ScriptBlock { Get-Process } 6. **$cred = Get-Credential** Create a credential object for remote connections. Syntax: $cred = Get-Credential 7. **Enter-PSSession** with Credentials Start a remote PowerShell session using stored credentials. Syntax: Enter-PSSession -ComputerName "RemoteComputer" -Credential $cred 8. **Invoke-Command** with Credentials Run a command on a remote computer using stored credentials. Syntax: Invoke-Command -ComputerName "RemoteComputer" -Credential $cred -ScriptBlock { Get-Process }