Register
: :
Login
Home
News
Forums
Scripts
User Groups
Resources
About
Forums
Search
Members
Unanswered
Active Topics
Forums
>
Using PowerShell
>
Active Directory
need help converting part of a script
Last Post 11 Jul 2010 12:20 AM by
Shay Levy
. 1 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
skitzsofrenick
New Member
Posts:11
09 Jul 2010 12:31 PM
Could someone please help me with part of a script? I a m trying to convert it from Quest's set-QADuser into set-ADUser.
The original line is:
Import-Csv adfile.csv | %{Set-ADUser $_.userID -ObjectAttributes @{UserParameters=$_.UserParameter}}
Apparently the AD module in windows7 / R2 does not understand ObjectAttributes, or at least doesn't like my syntax. :-)
Shay Levy
PowerShell MVP, Admin
Veteran Member
Posts:1362
11 Jul 2010 12:20 AM
Set-ADUser user1 -Replace @{ParameterLDAPName=
; ParameterLDAPName=
}
For more information on other options (-Add/-Remove/-Clear):
PS > help Set-ADUser -Parameter replace
Shay Levy
Windows PowerShell MVP
http://PowerShay.com
PowerShell Community Toolbar
Twitter:
@ShayLevy
You are not authorized to post a reply.
Using PowerShell
--General PowerShell
--Books, Tools, and Videos
--Exchange Server
--Active Directory
--System Center Family
--Non-Microsoft Products
--SharePoint
--SQL Server
--Working with .NET
--Peer Review
--Testing, Testing...
PowerShell Development
--Cmdlet Development
--PSDrive Provider Development
--Hosting the Shell
Looking Ahead
--Using PowerShell v2.0
--Developing for PowerShell v2.0
PowerShellCommunity.org
--Community Announcements and Assistance
--Completely Unrelated
--User Groups
--Community Business
----Suggestion Box
Forums
>
Using PowerShell
>
Active Directory
Active Forums 4.3
Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2