Files
tldr/pages.zh/windows/whoami.md
2022-10-04 23:06:23 +08:00

25 lines
435 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# whoami
> 显示有关当前用户的详细信息。
> 更多信息:<https://learn.microsoft.com/windows-server/administration/windows-commands/whoami>.
- 显示当前用户的用户名:
`whoami`
- 显示当前用户所属的组:
`whoami /groups`
- 显示当前用户的权限:
`whoami /priv`
- 显示当前用户的用户主体名称UPN
`whoami /upn`
- 显示当前用户的登录 id
`whoami /logonid`