Link to home
Start Free TrialLog in
Avatar of Justin Tucker
Justin Tucker

asked on

Collecting Remote Desktop information with Powershell or WMIC

Hi,

I am looking for a way to find out whether Remote Desktop Setting is enabled on remote machines.  Can anyone assist?

Thanks,
JT
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Or without requiring rights, WMI, reading registry etc.
Test-NetConnection someserver01 -Port 3389

Open in new window


As always, Shaun straight to the point.
While covers 99%
The possibility the port was altered exists..

What is the turnaround time you are looking for.
The script David provided or using wmic query to see status...
may run into ms firewall restriction.

You could push a computer GPO that would restrict the service if that is your goal,
My thing is, I try to find out what the end goal is to see whether let's say you want those off to be enabled, or disabled to modify Dave's kindly provided example to perform the task ...
Avatar of Justin Tucker
Justin Tucker

ASKER

Thanks Guys I appreciate it!!
Hi Guys,
 
Thanks for your responses, @Arnold I am trying to get this information as quickly as possible while still getting the most information available; and at this time I am only trying to establish what computers have RDP settings enabled.
@Shaun I will test the solution provided but I'm certain it may not be enough for what I'm trying to accomplish.
@David, Thanks for your script example I'm testing; I will take it as my solution.
@David is there any way to display the Computers even if they don't get a response back??
you may have to use many approaches, look at setting up a GPO that runs a startup or a shutdown script that will generate data into a DB, or into a flat file in a central location.
You could use a computer GPO to configure the windows firewall to allow WMI type of access going forward.
using nmap you could scan the individual computers to see which ports are open on each one and proceed from there.

It is a multi-path process that collects/assembles information.

each environment is different and restrictions placed on the MS firewall to shield the system might be now the pbstacle to you getting the quick answer.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial