PowerShell on steroids:
. .\PowerView.ps1
Import-Module .\PowerView.ps1Get-DomainGet-Domain -Domain domain.nameGet-DomainSID1. Get-DomainPolicyData
2. (Get-DomainPolicyData).systemaccess(Get-DomainPolicyData -domain domain.name).systemaccessFinding the Domain Controller
Get-DomainControllerGet-DomainController -Domain domain.comFinding users in a domain
1. Get-DomainUser
2. Get-DomainUser -Identity usernameFinding properties for users in the current domain
Get-DomainUser -Identity username -Properties *
Get-DomainUser -Properties samaccountname, logonCountFinding computers in the current domain
Get-DomainComputer | select Name
Get-DomainComputer -OperatingSystem "*Server 2022*"
Get-DomainComputer -PingGet-NetComputerFinding groups in the current domain
Get-DomainGroup | select Name
Get-DomainGroup -Domain <domain.name>Get-DomainGroup *admin*Get-DomainGroup -Identity *Enterprise Admins* -Domain domain.com -Properties objectsidFinding members of a group
Get-DomainGroupMember -Identity "Domain Admins" -RecurseFind-DomainUserLocationGet-DomainGroup -UserName "whatever"Finding local groups on a machine
Get-NetLocalGroup -Computername fqdn\computer-nameGet-NetLocalGroupMember -ComputerName fqdn\computer-name -GroupName AdministratorsFinding actively logged users on a computer for OPSEC
Get-NetLoggedon -ComputerName fqdn\computer-nameGet-LoggedonLocal -ComputerName fqdn\computer-nameGet-LastLoggedOn -ComputerName computer-nameFinding shares on hosts in the current domain
Find-DomainShareInvoke-ShareFinder -VerboseInvoke-FileFinder -VerboseGet-NetFileServerFinding GPOs and related information in the current domain
1. Get-DomainGPO
2. Get-DomainGPO -ComputerIdentity machine-nameGet-DomainGPOLocalGroupGet-DomainGPOComputerLocalGroupMapping -ComputerIdentity machine-nameGet-DomainGPOUserLocalGroupMapping -Identity username -VerboseFinding OUs in a domain
Get-DomainOUGet-DomainGPO -Identity "{GPO here}"Finding Access Control Lists of objects
Get-DomainObjectAcl -SamAccountName username -ResolveGUIDsGet-DomainObjectAcl -SearchBase "LDAP://CN=Domain Admins,CN=Users,DC=namebeforefirstdot,DC=namebeforeseconddot,DC=namebeforeanymoredots" -ResolveGUIDs -VerboseFind-InterestingDomainAcl -ResolveGUIDsGet-PathAcl -Path "\\computer-name\sysvol"