How to add the selected multiple users extensionAttribute9 as Azure using powershell script!!!

Hello,

I would like to add the extensionAttribute9 field with "Azure".

Currently I have to manually added the extensionAttribute9 field with "Azure" via adsi editor. Is there any powershell script to use to add such attributes.

Thanks,

September 2nd, 2015 9:32pm

Set-adUser  joe -Add @{ExtensionAttiibute9='Azure'}

Free Windows Admin Tool Kit Click here and download it now
September 2nd, 2015 9:47pm

Thanks. but wht abt multiple users?
September 2nd, 2015 10:03pm

Thanks. but wht abt multi
Free Windows Admin Tool Kit Click here and download it now
September 2nd, 2015 10:05pm

Get-aduser -Filter * | Set-adUser  joe -Add @{ExtensionAttiibute9='Azure'}
September 2nd, 2015 10:28pm

Get-aduser -Filter * | Set-adUser  joe -Add @{ExtensionAttiibute
Free Windows Admin Tool Kit Click here and download it now
September 2nd, 2015 10:45pm

$data = get-content c:\MailArchive\UserList.txt
foreach($a in $data)
{
Set-ADUser -Identity $a -Add @{extensionAttribute9="azure"}
}

It working fine, after I tried creating the below script.

September 2nd, 2015 11:27pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics