diff --git a/Find-InactiveUsers.ps1 b/Find-InactiveUsers.ps1 index adabe93..eb8a9bd 100644 --- a/Find-InactiveUsers.ps1 +++ b/Find-InactiveUsers.ps1 @@ -38,6 +38,10 @@ .EXAMPLE .\Find-InactiveUsers.ps1 | Export-Csv -Path .\Export_InactiveUsers.csv -NoTypeInformation -Encoding UTF8 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 Autor: Petr Štěpán