2021-03-24 17:55:41 +01:00
|
|
|
# whoami
|
|
|
|
|
|
|
|
> Affiche des détails sur l'utilisateur courant.
|
2022-10-04 17:06:23 +02:00
|
|
|
> Plus d'informations : <https://learn.microsoft.com/windows-server/administration/windows-commands/whoami>.
|
2021-03-24 17:55:41 +01:00
|
|
|
|
2021-10-07 09:37:39 +02:00
|
|
|
- Affiche le nom de l'utilisateur courant :
|
2021-03-24 17:55:41 +01:00
|
|
|
|
|
|
|
`whoami`
|
|
|
|
|
2021-10-07 09:37:39 +02:00
|
|
|
- Affiche les groupes pour lesquels l'utilisateur courant est un membre :
|
2021-03-24 17:55:41 +01:00
|
|
|
|
|
|
|
`whoami /groups`
|
|
|
|
|
2021-10-07 09:37:39 +02:00
|
|
|
- Affiche les droits de l'utilisateur courant :
|
2021-03-24 17:55:41 +01:00
|
|
|
|
|
|
|
`whoami /priv`
|
|
|
|
|
2021-10-07 09:37:39 +02:00
|
|
|
- Affiche le nom principal d'utilisateur (UPN) de l'utilisateur courant :
|
2021-03-24 17:55:41 +01:00
|
|
|
|
|
|
|
`whoami /upn`
|
|
|
|
|
2021-10-07 09:37:39 +02:00
|
|
|
- Affiche l'identifiant de connexion de l'utilisateur courant :
|
2021-03-24 17:55:41 +01:00
|
|
|
|
|
|
|
`whoami /logonid`
|