Тёмный

Bulk AD users Attributes update Powershell 

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

In this video, I am using a PowerShell script and this will help us to update the active directory users attributes including user description and email address. In this script, A csv file is used to fetch user details like Active directory user name, Description and email address.
Below is the script:
Import-Module ActiveDirectory
$Attribcsv=Import-csv “C:\ad_script\users_d.csv”
ForEach ($User in $Attribcsv)
{
Get-ADUser -Identity $User.user | set-ADUser -description $($User.description) -EmailAddress $($user.mail)
}

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

 

8 ноя 2022

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 17   
@trainerzard7
@trainerzard7 6 месяцев назад
Thank you for this lifesaving content.
@InfoAlias
@InfoAlias 6 месяцев назад
Glad you enjoy it!
@thomasrabach8422
@thomasrabach8422 Год назад
Thanks for the video, Very helpful. Please post the commands
@InfoAlias
@InfoAlias Год назад
Change the CSV file path as per your infra. Import-Module ActiveDirectory $Attribcsv=Import-csv “C:\ad_script\users_d.csv” ForEach ($User in $Attribcsv) { Get-ADUser -Identity $User.user | set-ADUser -description $($User.description) -EmailAddress $($user.mail) }
@MuhammadAbbas-cr6hm
@MuhammadAbbas-cr6hm 8 месяцев назад
Question, you saying CSV file but in video you are showing text file, is it csv or txt?
@InfoAlias
@InfoAlias 8 месяцев назад
its a csv file only, CSV file can be accessed in notepad as well, IF you have excel then you can open in excel...
@rb-et8fh
@rb-et8fh Год назад
is the test.userx the actual user logon name?
@InfoAlias
@InfoAlias Год назад
this is an example, you need to use the actual user in your csv file.
@johnchristianangelcastuera9666
@johnchristianangelcastuera9666 4 месяца назад
cannot see the .csv file when I go to open and look for the file
@johnchristianangelcastuera9666
@johnchristianangelcastuera9666 4 месяца назад
When I try to open it, it does not go as script, it goes like the notepad itself
@InfoAlias
@InfoAlias 4 месяца назад
If you have MS excel, you can save ths file as .csv extension and the check it again@@johnchristianangelcastuera9666
@essamyosry4732
@essamyosry4732 7 месяцев назад
it's working as well So I need update By OU at user and computer object.
@InfoAlias
@InfoAlias 7 месяцев назад
For computer Object attribute update yo can go through with ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-r3jVNbg0rgA.html
@sumit_rawat_uk
@sumit_rawat_uk 3 месяца назад
command is not working
@InfoAlias
@InfoAlias 3 месяца назад
Change the CSV path. Or create ad_script folder in c drive and then execute...
@hengmakara9718
@hengmakara9718 Год назад
It is not works.
@InfoAlias
@InfoAlias Год назад
Pls share the error