2019-03-11 15:27:23 +00:00
|
|
|
# whoami
|
|
|
|
|
2019-10-18 04:30:29 +01:00
|
|
|
> 显示有关当前用户的详细信息.
|
2019-03-11 15:27:23 +00:00
|
|
|
|
2019-10-18 03:33:27 +01:00
|
|
|
- 显示当前用户的用户名:
|
2019-03-11 15:27:23 +00:00
|
|
|
|
|
|
|
`whoami`
|
|
|
|
|
2019-10-18 03:33:27 +01:00
|
|
|
- 显示当前用户所属的组:
|
2019-03-11 15:27:23 +00:00
|
|
|
|
|
|
|
`whoami /groups`
|
|
|
|
|
2019-10-18 03:33:27 +01:00
|
|
|
- 显示当前用户的权限:
|
2019-03-11 15:27:23 +00:00
|
|
|
|
|
|
|
`whoami /priv`
|
|
|
|
|
2019-10-18 03:33:27 +01:00
|
|
|
- 显示当前用户的用户主体名称 (UPN):
|
2019-03-11 15:27:23 +00:00
|
|
|
|
|
|
|
`whoami /upn`
|
|
|
|
|
2019-10-18 03:33:27 +01:00
|
|
|
- 显示当前用户的登录 id:
|
2019-03-11 15:27:23 +00:00
|
|
|
|
|
|
|
`whoami /logonid`
|