Created
June 19, 2020 09:20
-
-
Save cnayan/a02d0a6674b9fdaea774faf8536fc4bb to your computer and use it in GitHub Desktop.
Launch CMD with modified path, as another user.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM Example: Launching CMD with modified path, as another user. | |
runas /netonly /user:DOMAIN\user_name "C:\Windows\System32\cmd.exe /K set \"PATH=%%PATH%%;C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment