Skip to content

Commit

Permalink
Remove Type Info from CSV
Browse files Browse the repository at this point in the history
  • Loading branch information
Russell Tomkins committed Jan 27, 2016
1 parent 20907e8 commit 50d2906
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Query-InsecureLDAPBinds.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ Usage: .\Query-InsecureLDAPBinds.ps1 [-ComputerName <DomainController>]
the diagnostic logging enabled. By default, the script will
return the past 24 hours worth of events. You can increase or
decrease this value as required
Date: 1.0 - Initial Release - January 27 2016 - Russell Tomkins
Date: 1.0 - 27-01-2016 Russell Tomkins - Initial Release
1.1 - 27-01-2016 Russell Tomkins - Removed Type Info from CSV
-------------------------------------------------------------------------------
Disclaimer
The sample scripts are not supported under any Microsoft standard support
Expand Down Expand Up @@ -77,7 +78,7 @@ ForEach ($Event in $Events) {
}
# Dump it all out to a CSV.
Write-Host $InsecureLDAPBinds.Count "records saved to .\InsecureLDAPBinds.csv for Domain Controller" $ComputerName
$InsecureLDAPBinds | Export-CSV .\InsecureLDAPBinds.csv
$InsecureLDAPBinds | Export-CSV -NoTypeInformation .\InsecureLDAPBinds.csv
# -----------------------------------------------------------------------------
# End of Main Script
# -----------------------------------------------------------------------------

0 comments on commit 50d2906

Please sign in to comment.