LCS/Office Communicator.. add contacts to users Communicator at Login (script)? RRS feed

  • Question

  • I'm trying to use the lcsaddcontacts.wsf command to add contacts (is there another way to do this)? 

    I'm using the format of the command lcsaddcontacts /
    usersfile:users.txt and /contactsfile:contacts.txt

    I'm assuming I need both files...

    The users.txt file contents is like this:


    While contacts.txt is:


    For some reason the script fails with an error stating "invalid class"
    at line 104.  (In vista, or in XP, it just runs but no contacts get added)..


    I'm assuming the users.txt represents who I want to add the contacts to..  the sip:userA should match the LCS login name or the AD login ?


    Also.. does anyone know of a way to install the client and have the
    users email address already entered in the system on first load?   I'm thinking one way would be to change the registry based on the user who is logged in.. by using VB script to get their login account name (email address).


    Thursday, February 15, 2007 8:25 PM

All replies

  • The file is crashing in the Function GetUserInstanceID..


    Particularly on the line "if not oUserInstances.Count < 1 then"

    It says the oUserInstances is an invalid class.



    Friday, February 16, 2007 8:22 PM
  • Just so everyone knows.. this file must be run on the LCS server or it wont work.. this was the step I was missing.

    Final question for anyone out there.. I've created 2 groups via these scripts.. if i have a contact in one group.. it wont appear in the second group or vice versa, depending on which group I create first..  Is there some way around this (IE: I want to automate this and have a certain user in both groups at the same time).

    The only way around seems to be.. having the user manually copy the person from one to the other (copy, not move).


    Friday, February 16, 2007 10:07 PM