Skip to content

Instantly share code, notes, and snippets.

@wcxaaa
Created June 5, 2022 15:08
Show Gist options
  • Save wcxaaa/22628c54b114aadc6bff1fbc0ee63d37 to your computer and use it in GitHub Desktop.
Save wcxaaa/22628c54b114aadc6bff1fbc0ee63d37 to your computer and use it in GitHub Desktop.
Windows Server Core 管理员以普通用户身份运行程序

Windows Server Core 管理员以普通用户身份运行程序,普通用户重新以权限汪身份运行程序

管理员以普通用户身份运行程序

示例:

RUNAS /trustlevel:"0x20000" powershell

("0x20000"指普通用户)

普通用户重新以权限汪身份运行程序:

(前提:该用户在"Administrator"组里)

示例:

RUNAS /user:"myuser123" powershell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment