Skip to content

Instantly share code, notes, and snippets.

@darbym
Created May 11, 2018 15:24
Show Gist options
  • Save darbym/6d0d7b8e7aaf3f46cbdb6f44e8f6b2f3 to your computer and use it in GitHub Desktop.
Save darbym/6d0d7b8e7aaf3f46cbdb6f44e8f6b2f3 to your computer and use it in GitHub Desktop.
# NO WARRANTY DON'T BE EVIL
# Source: https://twitter.com/wincmdfu/status/945613485408387072
# Enable RDP remotely via #wmic on #Windows 2008 and above:
C:\> wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TerminalServiceSetting WHERE (__CLASS !="") CALL SetAllowTSConnections 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment