tldr/pages.zh_TW/windows/whoami.md

25 lines
456 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# whoami
> 顯示關於當前使用者的詳細資訊。
> 更多資訊:<https://learn.microsoft.com/windows-server/administration/windows-commands/whoami>.
- 顯示當前使用者的名稱:
`whoami`
- 顯示當前使用者所屬的群組:
`whoami /groups`
- 顯示當前使用者的權限:
`whoami /priv`
- 顯示當前使用者的使用者主體名稱UPN
`whoami /upn`
- 顯示當前使用者的登錄 ID
`whoami /logonid`