Monday, August 1, 2011

Udpate Comptuer Description–PowerShell Script

Purpose - To update the computer description (description attribute) in Active Directory. – PowerShell V2 Script. 

Input File – Input file (Computers.csv) contains Computer Name and Description. 

image

Script:

image


I have also uploaded this script to Microsoft TechNet Gallery - http://gallery.technet.microsoft.com/scriptcenter/6e883230-fa47-4a9e-aa92-446ab3bea6dd


More scripts - http://portal.sivarajan.com/search?q=script+powershell&max-results=20

4 comments:

Thank you very much Santhosh!

Just cant seem to sort my network Certificates & Permissions...Help pls

getting below error
--Set-ADComputer : Cannot validate argument on parameter 'Identity'. The
argument is null. Provide a valid value for the argument, and then try running
the command again.
At line:1 char:16
+ Set-ADComputer $Computer -Description $Desc
+ ~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Set-ADComputer], ParameterBind
ingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Activ
eDirectory.Management.Commands.SetADComputer

Post a Comment

Popular Posts

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More