So interesting Remote Enable RDP work today...

Started by Melbosa, September 10, 2012, 05:05:10 PM

Previous topic - Next topic

Melbosa

Well I had this computer that:


  • Wasn't on the domain
  • RPC wouldn't allow remote management
  • Registry was not accessible from Remote
  • Could hit an administrative share
  • Could not remotely manage the firewall policies

And I REALLY WANTED TO RDP to the computer.

Well here is how I did it, and I've been looking through the PSTools to find even more kewl things...



PSTools from SysInternals is needed - http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx

C:\PSTools>PSExec.exe \\RemoteComputerName netsh firewall set service remotedesktop enable
C:\PSTools>PSExec.exe \\RemoteComputerName REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /V fDenyTSConnections /t REG_DWORD /d 0 /f


Thought this would be kewl to share for us Windows Peeps.
Sometimes I Think Before I Type... Sometimes!

Lazybones

Nice fix... I have used pstools for many odd remote admin tasks, the funny thing is that I often forget to use it...

Tom

QuoteC:\PSTools>PSExec.exe \\CEOSCOMPUTER netsh firewall set service remotedesktop enable
C:\PSTools>PSExec.exe \\CEOSCOMPUTER REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /V fDenyTSConnections /t REG_DWORD /d 0 /f

:D
<Zapata Prime> I smell Stanley... And he smells good!!!

Thorin

Quote from: Tom on September 10, 2012, 05:18:44 PM
QuoteC:\PSTools>PSExec.exe \\CEOSCOMPUTER netsh firewall set service remotedesktop enable
C:\PSTools>PSExec.exe \\CEOSCOMPUTER REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /V fDenyTSConnections /t REG_DWORD /d 0 /f

:D

Took me a couple of re-reads before I realized what you'd changed...
Prayin' for a 20!

gcc thorin.c -pedantic -o Thorin
compile successful