Skip to content

Commit

Permalink
Removed csv output in accountCheck function
Browse files Browse the repository at this point in the history
  • Loading branch information
UserNotHome committed May 8, 2024
1 parent 94f5b82 commit f39d963
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions incident-response/CredentialLeakAccountActive.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ function accountCheck($UPN) {
if ($user -ne $null) {
# Check if the account is enabled
if ($user.Enabled -eq $true) {
Export-Csv -Path .\EnabledAccounts.csv -NoTypeInformation
Write-Host "The account is enabled: $($user.UserPrincipalName)"
} else {
Write-Host "The account is disabled: $($user.UserPrincipalName)"
}
} else {
Write-Host "The account was not found: $($user.UserPrincipalName)"
} else {
Write-Host "The account was not found: $($user.UserPrincipalName)"
}
}
}

Expand Down

0 comments on commit f39d963

Please sign in to comment.