Skip to content

Commit

Permalink
local_admin.csv -> local_admins.csv
Browse files Browse the repository at this point in the history
  • Loading branch information
HarmJ0y committed Aug 6, 2016
1 parent 90c1a6f commit e2f4b00
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions PowerShell/BloodHound.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down Expand Up @@ -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') {
Expand All @@ -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') {
Expand All @@ -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"
}
}
}
Expand Down

0 comments on commit e2f4b00

Please sign in to comment.