windows - Updating Active Directory user properties in Active Directory using Powershell -


In a Windows Server 2003 R2 environment, using Powershell v2.0, how to update user properties Will there be a duplicate of Active Directory, such as their phone number and title?

The move here, I would like to do this without depending on the set-QAIDSER and I do not have the option to use the Commandlets of Server 2008, however

thanks.

Taking things together around the Internet, I would ...

< Previous> function Get-ADUser ([string] $ samid = $ env: user name) {$ searcher = new object directory services Directory Finder $ explorer Filter = "(& amp; (objectcategory = person) (objectclass = user) (sAMAccountname = $ samid))" $ user = $ searcher.FindOne () if ($ user -ne $ null) {$ user.getdirectoryentry () }} $ User = get-ADUser 'username' # Use all properties $ user.psbase.properties # Use some properties $ R.title = 'new title' $ user.telephoneNumber = '5555551212' $ user SetInfo () # Output Results $ user.title $ user.telephoneNumber

More info


  • Comments

    Popular posts from this blog

    sql - dynamically varied number of conditions in the 'where' statement using LINQ -

    asp.net mvc - Dynamically Generated Ajax.BeginForm -

    Debug on symbian -