Skip to content

Instantly share code, notes, and snippets.

@isapir
Last active March 22, 2017 19:41
Show Gist options
  • Save isapir/4f1d87daca73340424024fc47f14a47c to your computer and use it in GitHub Desktop.
Save isapir/4f1d87daca73340424024fc47f14a47c to your computer and use it in GitHub Desktop.
Useful ConEmu Tasks

Environment

set PsExec=C:\Apps\SysInternals\PsExec.exe

set MSYS2=C:\Apps\msys64\usr\bin

set PATH=%ConEmuBaseDir%\Scripts;%PATH%;%MSYS2%

Tasks

Edit hosts

notepad C:\Windows\System32\drivers\etc\hosts -new_console:a

PsExec

-new_console:abn %PsExec% -s -h -d -i "%ConEmuBaseDir%\ConEmuC64.exe" /ATTACH /GHWND=%ConEmuHWND% /ADMIN /ROOT cmd.exe

PsExec (Session 0)

-new_console:abn %PsExec% -s -h -d -i 0 /ATTACH /GHWND=%ConEmuHWND% /ADMIN /ROOT cmd.exe

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