From e6cc1dfd02c763e10dfb43672ed02fbac57f2994 Mon Sep 17 00:00:00 2001 From: pxgamer Date: Mon, 9 Jul 2018 15:06:56 +0100 Subject: [PATCH] whoami: add page --- pages/windows/whoami.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/windows/whoami.md diff --git a/pages/windows/whoami.md b/pages/windows/whoami.md new file mode 100644 index 0000000000..e784ab8ad3 --- /dev/null +++ b/pages/windows/whoami.md @@ -0,0 +1,23 @@ +# whoami + +> Display details about the current user. + +- Display the username of the current user: + +`whoami` + +- Display the groups that the current user is a member of: + +`whoami /groups` + +- Display the privileges of the current user: + +`whoami /priv` + +- Display the user principal name (UPN) of the current user: + +`whoami /upn` + +- Display the logon id of the current user: + +`whoami /logonid`