-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14163,21 +14163,21 @@ function Export-BloodHoundCSV { | |
PS C:\> Get-BloodHoundData | Export-BloodHoundCSV | ||
Executes default collection options and exports the data to user_sessions.csv, group_memberships.csv, | ||
local_admin.csv, and trusts.csv in the current directory. | ||
local_admins.csv, and trusts.csv in the current directory. | ||
.EXAMPLE | ||
PS C:\> Get-BloodHoundData | Export-BloodHoundCSV -SkipGCDeconfliction | ||
Executes default collection options, skips the global catalog deconfliction, and exports the data | ||
to user_sessions.csv, group_memberships.csv, local_admin.csv, and trusts.csv in the current directory. | ||
to user_sessions.csv, group_memberships.csv, local_admins.csv, and trusts.csv in the current directory. | ||
.EXAMPLE | ||
PS C:\> Get-BloodHoundData | Export-BloodHoundCSV -CSVFolder C:\Temp\ -CSVPrefix "domainX" | ||
Executes default collection options and exports the data to domainX_user_sessions.csv, domainX_group_memberships.csv, | ||
domainX_local_admin.csv, and tdomainX_rusts.csv in C:\Temp\. | ||
domainX_local_admins.csv, and tdomainX_rusts.csv in C:\Temp\. | ||
.NOTES | ||
|
@@ -14192,7 +14192,7 @@ function Export-BloodHoundCSV { | |
"[email protected]","user","GROUP1" | ||
"computer3.testlab.local","computer","GROUP1" | ||
PowerView.LocalUserAPI/PowerView.GPOLocalGroup -> $($CSVExportPrefix)local_admin.csv | ||
PowerView.LocalUserAPI/PowerView.GPOLocalGroup -> $($CSVExportPrefix)local_admins.csv | ||
AccountName,AccountType,ComputerName | ||
"[email protected]","user","computer2.domain.local" | ||
|
@@ -14480,15 +14480,15 @@ function Export-BloodHoundCSV { | |
AccountType = 'group' | ||
ComputerName = $Object.ComputerName | ||
} | ||
New-Object PSObject -Property $Properties | Export-PowerViewCSV -OutFile "$OutputFolder\$($CSVExportPrefix)local_admin.csv" | ||
New-Object PSObject -Property $Properties | Export-PowerViewCSV -OutFile "$OutputFolder\$($CSVExportPrefix)local_admins.csv" | ||
} | ||
else { | ||
$Properties = @{ | ||
AccountName = $AccountName | ||
AccountType = 'user' | ||
ComputerName = $Object.ComputerName | ||
} | ||
New-Object PSObject -Property $Properties | Export-PowerViewCSV -OutFile "$OutputFolder\$($CSVExportPrefix)local_admin.csv" | ||
New-Object PSObject -Property $Properties | Export-PowerViewCSV -OutFile "$OutputFolder\$($CSVExportPrefix)local_admins.csv" | ||
} | ||
} | ||
elseif($Object.PSObject.TypeNames -contains 'PowerView.LocalUserSpecified') { | ||
|
@@ -14502,15 +14502,15 @@ function Export-BloodHoundCSV { | |
AccountType = 'group' | ||
ComputerName = $Object.ComputerName | ||
} | ||
New-Object PSObject -Property $Properties | Export-PowerViewCSV -OutFile "$OutputFolder\$($CSVExportPrefix)local_admin.csv" | ||
New-Object PSObject -Property $Properties | Export-PowerViewCSV -OutFile "$OutputFolder\$($CSVExportPrefix)local_admins.csv" | ||
} | ||
else { | ||
$Properties = @{ | ||
AccountName = $AccountName | ||
AccountType = 'user' | ||
ComputerName = $Object.ComputerName | ||
} | ||
New-Object PSObject -Property $Properties | Export-PowerViewCSV -OutFile "$OutputFolder\$($CSVExportPrefix)local_admin.csv" | ||
New-Object PSObject -Property $Properties | Export-PowerViewCSV -OutFile "$OutputFolder\$($CSVExportPrefix)local_admins.csv" | ||
} | ||
} | ||
elseif($Object.PSObject.TypeNames -contains 'PowerView.GPOLocalGroup') { | ||
|
@@ -14531,15 +14531,15 @@ function Export-BloodHoundCSV { | |
AccountType = 'group' | ||
ComputerName = $Computer | ||
} | ||
New-Object PSObject -Property $Properties | Export-PowerViewCSV -OutFile "$OutputFolder\$($CSVExportPrefix)local_admin.csv" | ||
New-Object PSObject -Property $Properties | Export-PowerViewCSV -OutFile "$OutputFolder\$($CSVExportPrefix)local_admins.csv" | ||
} | ||
else { | ||
$Properties = @{ | ||
AccountName = $AccountName | ||
AccountType = 'user' | ||
ComputerName = $Computer | ||
} | ||
New-Object PSObject -Property $Properties | Export-PowerViewCSV -OutFile "$OutputFolder\$($CSVExportPrefix)local_admin.csv" | ||
New-Object PSObject -Property $Properties | Export-PowerViewCSV -OutFile "$OutputFolder\$($CSVExportPrefix)local_admins.csv" | ||
} | ||
} | ||
} | ||
|