Overview Set-ADUser Attribute cmdlet for Bulk Update and Modify Properties of Multiple Users Active Directory
Description of Set-ADUser Attribute cmdlet
One of the most popular of Windows Active Directory Powershell cmdlet is Set-ADUser Attribute cmdlet that let you Bulk User Creation, Bulk User Modification and Modify the properties of an Active Directory Users such as update the attribute info of Telephone and Office properties in Active Directory and replace it. This article Overviewing Set-ADUser Attribute cmdlet for Bulk Update and Modify Active Directory Properties via PowerShell using CSV FileWhy Use Set-ADUser Attribute
There is so much we can do using Set-ADUser Attribute, moreover we can collaborate between Set-ADUser Attribute cmdlet with another AD Powershell Attribute cmdlet like Get-ADGroupMember Attribute cmdlet and Import-CSV Attribute cmdlet. Below sample scenario for example on how to collaborate collaborate between Set-ADUser Attribute cmdlet with Get-ADGroupMember Attribute cmdlet and Import-CSV Attribute cmdlet- When you want to update telephone property of spesific active directory distribution group(lets call ICT-Operation) where it used for ICT Department. In this scenario we will collaborate between Set-ADUser Attribute cmdlet with Get-ADGroupMember Attribute cmdlet, below for sample script
Get-ADGroupMember -Identity "ICT Operation" -Recursive | where { $_.telephone -eq $null } | Set-ADUser -Add @{employeeType = "+6221 0123 456"}
Script above will update all memmber telephone property of ICT Operation Distribution Group - When you want to update description for member who listed on your csv file and used SamAccountName property as identity, you can look at below simple script
Import-csv .\yourcsvfile.csv | ForEach-Object {set-aduser -Identity $_.samaccountname -Replace @{description=$_.description}}
parameter {description=$_.description} is for description property, please note that $_.description is same as head of coloumn on your csv file
Not stop at above example, you can explore as you needed for Bulk Update and Modify Active Directory users Properties. You can collaborate Set-ADUser Attribute cmdlet with another AD Powershell Attribute cmdlet- When you want to update telephone property of spesific active directory distribution group(lets call ICT-Operation) where it used for ICT Department. In this scenario we will collaborate between Set-ADUser Attribute cmdlet with Get-ADGroupMember Attribute cmdlet, below for sample script
How to run Set-ADUser Attribute cmdlet and Recomendation using it
If need to run Set-ADUser Attribute cmdlet, just open your Powershell Active Directory Module by clicking on Start Menu > Administrative tools > Powershell Active Directory Module then run whatever your great script on it.
Set-ADUser Attribute cmdlet answer the question While we responsible as IT Infrastructureand Architecture, we always think about Innovation, Economic, System Integration, Security, Reliable, Control Management System and very important is Positive User Experience. My recomendation is using Set-ADUser Attribute cmdlet and collaborate it with Import-CSV Attribute cmdlet
** Note : Pay attention to every detail steps that informed, failure or damage to your system or data is not my responsibility "Do With Your Own Risk" or you can do research through the Lab to minimize your system failure
Tama on Google+
Comments
Post a Comment