Skip to content

Instantly share code, notes, and snippets.

@xycui
Last active February 17, 2019 15:35
Show Gist options
  • Save xycui/37c641d6234d2695702addb667e91edf to your computer and use it in GitHub Desktop.
Save xycui/37c641d6234d2695702addb667e91edf to your computer and use it in GitHub Desktop.
computer management notes

Remote Command Connect

Items Values
Key words WinRM, WinRS
WinRSPort http 5985; https 5986

Client side

Command: Connect to remote

winrs -r:[host]:[port] -u:username cmd

Server side:

Setting: Disable UAC WinRS UAC

reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f

Keep Task LongRunning

Windows Env Preparing: Install cygwin(via scoop)

Command:

setsid command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment