Find-InactiveUsers.ps1 added new example to disable users

This commit is contained in:
Petr Štěpán
2024-10-20 13:52:12 +02:00
parent a28f48650c
commit 466aac1c33

View File

@@ -39,6 +39,10 @@
.\Find-InactiveUsers.ps1 | Export-Csv -Path .\Export_InactiveUsers.csv -NoTypeInformation -Encoding UTF8 .\Find-InactiveUsers.ps1 | Export-Csv -Path .\Export_InactiveUsers.csv -NoTypeInformation -Encoding UTF8
Exportuje všechny neaktivní uživatele v Active Directory do CSV. Exportuje všechny neaktivní uživatele v Active Directory do CSV.
.EXAMPLE
.\Find-InactiveUsers.ps1 | Set-ADUser -Enabled $false
Deaktivuje všechny neaktivní uživatele v Active Directory.
.NOTES .NOTES
Autor: Petr Štěpán Autor: Petr Štěpán
Datum vytvoření: 20.10.2024 Datum vytvoření: 20.10.2024