Тёмный

Account expiry for bulk users in active directory with powershell script 

InfoAlias
Подписаться 1,8 тыс.
Просмотров 341
50% 1

PowerShell script that reads user information from a CSV file and sets the account expiration date to two days from the current date for each user in Active Directory. Please make sure to adjust the CSV file structure according to your needs:
Please ensure that your CSV file (Users.csv) has a header row with the column Username containing the usernames for which you want to set the expiration date.
Note: Make sure to test scripts in a safe environment before applying them to a production Active Directory. Ensure that you have the necessary permissions to modify user account information.
You can copy the PowerShell script from below URL:
www.infoalias.com/powershell-...
#powershell
#powershellscripting
#powershelltraining
#activedirectory
#windows
#server

Опубликовано:

 

15 дек 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 1   
@bproducer
@bproducer Месяц назад
Great, now how do we remove the expiration date?