PowerView CheatSheet
Find Local Admin Access
Find all machines on domain where you have local admin access
// Create Credential Object
$passwd = ConvertTo-SecureString "password" -AsPlainText -Force
$creds = New-Object System.Management.Automation.PSCredential ("fakedomain\user", $passwd)
// Gather List of all workstations on domain and store in variable
$comps = Get-NetComputer -Domain msp.local -Credential $creds
// Attempt to issue a command on each machine - any results indicate local admin on that machine
Invoke-Command -ScriptBlock{hostname} -Computer ($comps.dnshostName) -Credential $creds -ErrorAction SilentlyContinue
Get List of Kerbroastable Users
The following will enumerate 'Kerberoastable' users for a given domain and output the results to a csv file for easy review.
Get-NetUser -Domain msp.local | Where-Object {$_.servicePrincipalName} | select name, samaccountname, serviceprincipalname | Export-CSV -NoTypeInformation kerberoastable.csv
Get a list of Computers on the domain
The following will enumerate 'Workstations' for a given domain.
Get a list of all groups on a domain
List all members of a a given group
Identifying RBCD in active directory
Anyone of the below commands can find RBCD in an Active Directory environment.

Last updated