Skip to content

Instantly share code, notes, and snippets.

@mranawake
Last active January 16, 2023 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mranawake/14a5964b9e47f2370ab660cc2cf79e6c to your computer and use it in GitHub Desktop.
Save mranawake/14a5964b9e47f2370ab660cc2cf79e6c to your computer and use it in GitHub Desktop.
Run application as Windows admin on a lower environment with saved credentials. Create a shortcut and let it execute the command below with correct values.
runas /user:ComputerName\Username /savecred "C:\path\to\file.exe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment