Run RSAT command line from remote pc

  • Last Post 3 weeks ago
manasrrp6 posted this 3 weeks ago

How to run dos command line tools as like dcdiag , repadmin etc from remot pc running desktop OS windows 7 or 10.
With Warm Regards,
Manas Dash.+91 9437615424
+91 7400342191
Skype : manasrrp6
Plant a Tree & Save the Earth.

Order By: Standard | Newest | Votes
ElasticSky posted this 3 weeks ago

Hi there,

If you are not into PSExec (sysinternals) or your company has locked it down due to recent ransomware activities then you can do the following:

Invoke-WmiMethod -Class Win32_Process -Name Create -ArgumentList “repadmin /showrepl”

Of course you could just ran the utilities from your management workstation as the work remotely natively and you simply use the appropriate switch to specify a domain controller to run against. Just need RSAT installed.

Kind regards.


michael1 posted this 3 weeks ago

I personally prefer Invoke-Command.



ElasticSky posted this 3 weeks ago

Agreed but assumed (probably wrongly) that Invoke-Command required PSRemoting to be enabled and this might not be the case for the environment in question :)

Happy to be corrected and have my knowledge increased.


michael1 posted this 3 weeks ago

This is actually a place where "weirdness ensues".

Windows Remote Management (WinRM) uses like two TCP ports.

Remote Management is COM+ based and can use hundreds of ports.

What is available in a given environment is dependent on many factors.

When I write enterprise scripts... I first try WinRM and then I try RM.