Basic Enumeration
Get current username
whoami
Get current user's hostname
hostname
Get current user's privileges
whoami /privs
Get current domain name
[System.DirectoryServices.ActiveDirectory.Domain]::GetComputerDomain()
Last updated
Get current username
whoami
Get current user's hostname
hostname
Get current user's privileges
whoami /privs
Get current domain name
[System.DirectoryServices.ActiveDirectory.Domain]::GetComputerDomain()
Last updated