Scripts Thread, Powershell modify multi-string values in AD in Coding and Web Development; I am modifying some AD values using powershell, below is part of a standard update for AD, but i am ...
28th August 2009, 01:28 PM #1
- Rep Power
Powershell modify multi-string values in AD
I am modifying some AD values using powershell, below is part of a standard update for AD, but i am trying to add multiple values for otherIpPhone, can anyone help me with the code that i need to do this?
$objUser = [ADSI]"LDAP://CN=$cn,OU=$usertype,OU=$fullname,DC=domain,DC=co,D C=uk"
The values are all populated in my full script this is just a cut out,
The only other way I can think to do this is to pipe the update into admodify command line tool.
I have a vbs script to do this but i need to do this via powershell if possible,
28th August 2009, 02:12 PM #2
$arrMemberType = (values you want to use)
Originally Posted by maf_001
$objUser.PutEx($arrMemberType.Count, "otherIpPhone", $arrMemberType
Try that one.
Last edited by jamesb; 28th August 2009 at 02:47 PM.
By TwyloII in forum How do you do....it?
Last Post: 16th January 2009, 01:20 PM
Last Post: 9th January 2009, 07:17 PM
By Patk100 in forum Windows
Last Post: 4th April 2008, 06:06 PM
By projector1 in forum How do you do....it?
Last Post: 14th February 2007, 02:41 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)