1
vote
0answers
64 views

Running New-RDSSessionDeployment Remotely

I'm trying to script the setup of a remote desktop deployment into Azure. I'm using Powershell remoting to connect to the WinRM endpoint on the VM's and execute remote Powershell. For the most part ...
1
vote
1answer
302 views

Full Information from Terminal Services Manager (tsadmin.msc) via command line

I would like to get the full session information that is presented in the Terminal Services Manager via the command line or PowerShell (so that it can be used in automation) or at the very least the ...
2
votes
1answer
106 views

How to export computers from Active Directory to XML using Powershell?

I am trying to create a powershell scripts for Remote Desktop Connection Manager using the active directory module. My first thought was get a list of computers in AD and parse them out into XML ...
2
votes
1answer
362 views

RD Gateway reporting features/capabilities

We have just implemented RD Gateway for our own department in preparation for a push to the whole agency for telecommuting. It is all setup and working great, but I was trying to figure out how best ...
0
votes
2answers
563 views

How to add user to list of Remote desktop users on remote machine using Powershell?

I wan't to make a script that connects to remote machine and add specific domain user to list of users who can connect to that machine using Remote Desktop. How to do that using Powershell?
1
vote
3answers
5k views

How to add a firewall rule with PowerShell?

I made a very simple script to enable Remote Desktop connections on a computer: # Allow Remote Desktop connections (Get-WmiObject -Class "Win32_TerminalServiceSetting" -Namespace ...
1
vote
2answers
2k views

Automate running Cisco VPN Client and RDP

I am trying to automate running the Cisco VPN Client and then a RDP session. What is a good way to do this? Batch File? Powershell? Other I have played with a batch file and this kind of works. ...
6
votes
11answers
23k views

Scripting - How to disconnect Remote Desktop sessions?

I am looking for a way to close all active Remote Desktop sessions on a computer (local computer). Windows includes a couple of commands (rwinsta, qwinsta, etc.) to look at the active sessions, but I ...