Skip to content

Commit

Permalink
Create Export-Users.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
rswio authored Jan 26, 2025
1 parent b89f4b1 commit 84e4638
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Active Directory/Export-Users.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Get-ADUser -Filter * -Property DisplayName, EmailAddress, Department | Select-Object Name, SamAccountName, EmailAddress, Department | Export-Csv -Path "ADUsers.csv" -NoTypeInformation
Write-Output "All AD users exported to ADUsers.csv."

0 comments on commit 84e4638

Please sign in to comment.