Find-InactiveUsers.ps1 added new example to disable users
This commit is contained in:
@@ -38,6 +38,10 @@
|
|||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
.\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
|
||||||
|
|||||||
Reference in New Issue
Block a user