I have a script that I am using that will change the users password based on
a list from a text file, I am also adding notes in the "Info" field in AD,
the questions I have is how can I append to the current info that is in
there. When I run the script it will replace what ever information is in
there. This is what is running against the users account. I want to append
to this not replace what is there already...

Thanks
Gavin...

objUser.Put "Info", "Password changed on 06/06/2006 by Tech Services"

On Error Resume Next

objUser.SetInfo

Re: Help with script by Jim

Jim
Wed Jun 07 07:21:57 CDT 2006

take whatever is in there already and store it in a variable like maybe:

strCurrentInfo = objUser.Info

then just write it back like this:

objUser.Put "Info", strCurrentInfo & "Password changed on 06/06/2006 by Tech
Services"



"Gavin" <gavin.rossnospam@stewart.com> wrote in message
news:Ownmp%23ciGHA.3900@TK2MSFTNGP05.phx.gbl...
>I have a script that I am using that will change the users password based
>on a list from a text file, I am also adding notes in the "Info" field in
>AD, the questions I have is how can I append to the current info that is in
>there. When I run the script it will replace what ever information is in
>there. This is what is running against the users account. I want to append
>to this not replace what is there already...
>
> Thanks
> Gavin...
>
> objUser.Put "Info", "Password changed on 06/06/2006 by Tech Services"
>
> On Error Resume Next
>
> objUser.SetInfo
>
>



Re: Help with script by Gavin

Gavin
Wed Jun 07 11:36:20 CDT 2006

That worked perfectly...

Thanks
Gavin...

"Jim" <no@spam.com> wrote in message
news:%23gmT5ziiGHA.4660@TK2MSFTNGP03.phx.gbl...
> take whatever is in there already and store it in a variable like maybe:
>
> strCurrentInfo = objUser.Info
>
> then just write it back like this:
>
> objUser.Put "Info", strCurrentInfo & "Password changed on 06/06/2006 by
> Tech Services"
>
>
>
> "Gavin" <gavin.rossnospam@stewart.com> wrote in message
> news:Ownmp%23ciGHA.3900@TK2MSFTNGP05.phx.gbl...
>>I have a script that I am using that will change the users password based
>>on a list from a text file, I am also adding notes in the "Info" field in
>>AD, the questions I have is how can I append to the current info that is
>>in there. When I run the script it will replace what ever information is
>>in there. This is what is running against the users account. I want to
>>append to this not replace what is there already...
>>
>> Thanks
>> Gavin...
>>
>> objUser.Put "Info", "Password changed on 06/06/2006 by Tech Services"
>>
>> On Error Resume Next
>>
>> objUser.SetInfo
>>
>>
>
>



Re: Help with script by Gavin

Gavin
Wed Jun 07 11:33:12 CDT 2006

That did not seem to work, it did not change the info field at all nor did
it replace what was there.

Thanks
Gavin...


"Jim" <no@spam.com> wrote in message
news:%23gmT5ziiGHA.4660@TK2MSFTNGP03.phx.gbl...
> take whatever is in there already and store it in a variable like maybe:
>
> strCurrentInfo = objUser.Info
>
> then just write it back like this:
>
> objUser.Put "Info", strCurrentInfo & "Password changed on 06/06/2006 by
> Tech Services"
>
>
>
> "Gavin" <gavin.rossnospam@stewart.com> wrote in message
> news:Ownmp%23ciGHA.3900@TK2MSFTNGP05.phx.gbl...
>>I have a script that I am using that will change the users password based
>>on a list from a text file, I am also adding notes in the "Info" field in
>>AD, the questions I have is how can I append to the current info that is
>>in there. When I run the script it will replace what ever information is
>>in there. This is what is running against the users account. I want to
>>append to this not replace what is there already...
>>
>> Thanks
>> Gavin...
>>
>> objUser.Put "Info", "Password changed on 06/06/2006 by Tech Services"
>>
>> On Error Resume Next
>>
>> objUser.SetInfo
>>
>>
>
>