| Author |
Message |
Ray Breen
Guest
|
Posted:
Wed Nov 02, 2005 5:51 pm Post subject:
Auto populate contacts and automatically update |
|
|
Hi Guys,
We have recently rolled out live comms version 2005 and would like to make a
few comments that may save you a lot of time and effort that i have gone
through.
We have the requirement to automatically populate contacts for all users,
based upon ou membership and also for this to be updated on a regular basis.
To this end i have put together a few batch scripts that furfill this.
The utilise the various scripts available in lcs res kit.
Step 1 - extract user information from active directory
dsquery * "OU=test,OU=test2,DC=ms,DC=tst,DC=int" -attr
msRTCSIP-PrimaryUserAddress -scope onelevel -limit 10000 > contacts.txt
This will extract all sip addresses from user objects contained within the
ou and place them into the file contacts.txt. If you have sub ou's under this
one remove '-scope onelevel' from the commandline, as it will extract the
subtree.
Step 2 - Import contacts into users contacts list
lcsaddcontacts.wsf /usersfile:contacts.txt /contactsfile:contacts.txt
/contactsgroup:Test
This will import all the contacts extracted from the dsquery command into
the same list of users for all the same contacts. For example if contacts.txt
contains
sip:joe@test.ocm
sip:joe2@test.com
joe and joe2 will both see each other as contacts, as the format of the file
is compatible with the lcsaddcontacts script. The user is displayed by their
default ad user details.
Step 3 - Automatically authorise users to allow everyone to be able to
subscribe to them or see their status
lcsaddaces.wsf /usersfile:contacts.txt /acesfile:acesfile.txt
Acesfile.txt contains the following :
all allow allow
General
I have taken this to the next level as we have various business unitswhich
we pre-populate various groups and no business units sees all the groups
(besides i.t)
Hope this helps a few guys |
|
| Back to top |
|
 |
u101440
Guest
|
Posted:
Wed Nov 09, 2005 1:50 am Post subject:
RE: Auto populate contacts and automatically update |
|
|
Ray
Thanx for adding this (it's really difficult following the scripts) but I'd
like to ask some silly questions if I may.
Step 1 should be run at the LCS server?
What about Steps 2 & 3? Adding contacts will have to be done a user level
yes? How did you accomplish this? Did you run the scripts via a login script?
Thanx for any advice.
"Ray Breen" wrote:
| Quote: | Hi Guys,
We have recently rolled out live comms version 2005 and would like to make a
few comments that may save you a lot of time and effort that i have gone
through.
We have the requirement to automatically populate contacts for all users,
based upon ou membership and also for this to be updated on a regular basis.
To this end i have put together a few batch scripts that furfill this.
The utilise the various scripts available in lcs res kit.
Step 1 - extract user information from active directory
dsquery * "OU=test,OU=test2,DC=ms,DC=tst,DC=int" -attr
msRTCSIP-PrimaryUserAddress -scope onelevel -limit 10000 > contacts.txt
This will extract all sip addresses from user objects contained within the
ou and place them into the file contacts.txt. If you have sub ou's under this
one remove '-scope onelevel' from the commandline, as it will extract the
subtree.
Step 2 - Import contacts into users contacts list
lcsaddcontacts.wsf /usersfile:contacts.txt /contactsfile:contacts.txt
/contactsgroup:Test
This will import all the contacts extracted from the dsquery command into
the same list of users for all the same contacts. For example if contacts.txt
contains
sip:joe@test.ocm
sip:joe2@test.com
joe and joe2 will both see each other as contacts, as the format of the file
is compatible with the lcsaddcontacts script. The user is displayed by their
default ad user details.
Step 3 - Automatically authorise users to allow everyone to be able to
subscribe to them or see their status
lcsaddaces.wsf /usersfile:contacts.txt /acesfile:acesfile.txt
Acesfile.txt contains the following :
all allow allow
General
I have taken this to the next level as we have various business unitswhich
we pre-populate various groups and no business units sees all the groups
(besides i.t)
Hope this helps a few guys |
|
|
| Back to top |
|
 |
Ray Breen
Guest
|
Posted:
Wed Nov 09, 2005 9:51 am Post subject:
RE: Auto populate contacts and automatically update |
|
|
| Quote: | Ray
Thanx for adding this (it's really difficult following the scripts) but I'd
like to ask some silly questions if I may.
|
Not a problem, it took me a few days to get this all working and if i can
save someone else the hassle i might as well post :)
| Quote: |
Step 1 should be run at the LCS server?
What about Steps 2 & 3?
|
All are to be run at the server mate, as they require some of the wmi
extensions that only exist on the same machine with lcs installed on,
although ive heard if you have the admin tools installed for lcs you can also
run them from that machine but i havent tried.
| Quote: | yes? How did you accomplish this? Did you run the scripts via a login script?
|
As you may notice the second bunch of scripts require two files for input,
the first is a list users, and the second is the actual contacts. What
happens is that users in the second file(contacts parameter) are added to the
list of users contacts in the first file.
For example the following command
lcsaddcontacts.wsf /usersfile:users.txt /contactsfile:contacts.txt
/contactsgroup:Test
users.txt
joe.bloggs@blah.com
contacts.txt
bart.simpson@blah.com
homer.simpson@blah.com
What will now happen is that user joe.bloggs will have bart.simpson and
homer.simpson added to their group called test.
It took me a while to get my head around the way it works, but it is pretty
good, much better than using login scripts and running it every login. As you
can automate the whole process to run outside peak hours.
Any more questions give me a shout
| Quote: |
Thanx for any advice.
"Ray Breen" wrote:
|
|
|
| Back to top |
|
 |
u101440
Guest
|
Posted:
Wed Nov 09, 2005 9:51 am Post subject:
RE: Auto populate contacts and automatically update |
|
|
Thanx Ray. I tried using your original post to see what would happen and low
and behold it worked perfectly. Thanx for detailing how this should be done
in a more clear/concise manner than the actual script readme. It's useful to
see how each stage should be done and I would have liked the readme to have
included stages processes like you've laid out. Would make first time
installations so much easier.
"Ray Breen" wrote:
| Quote: | Ray
Thanx for adding this (it's really difficult following the scripts) but I'd
like to ask some silly questions if I may.
Not a problem, it took me a few days to get this all working and if i can
save someone else the hassle i might as well post :)
Step 1 should be run at the LCS server?
What about Steps 2 & 3?
All are to be run at the server mate, as they require some of the wmi
extensions that only exist on the same machine with lcs installed on,
although ive heard if you have the admin tools installed for lcs you can also
run them from that machine but i havent tried.
yes? How did you accomplish this? Did you run the scripts via a login script?
As you may notice the second bunch of scripts require two files for input,
the first is a list users, and the second is the actual contacts. What
happens is that users in the second file(contacts parameter) are added to the
list of users contacts in the first file.
For example the following command
lcsaddcontacts.wsf /usersfile:users.txt /contactsfile:contacts.txt
/contactsgroup:Test
users.txt
joe.bloggs@blah.com
contacts.txt
bart.simpson@blah.com
homer.simpson@blah.com
What will now happen is that user joe.bloggs will have bart.simpson and
homer.simpson added to their group called test.
It took me a while to get my head around the way it works, but it is pretty
good, much better than using login scripts and running it every login. As you
can automate the whole process to run outside peak hours.
Any more questions give me a shout
Thanx for any advice.
"Ray Breen" wrote:
|
|
|
| Back to top |
|
 |
Ray Breen
Guest
|
Posted:
Wed Nov 09, 2005 9:51 am Post subject:
RE: Auto populate contacts and automatically update |
|
|
| Not a problem, glad its working for you |
|
| Back to top |
|
 |
Jacques
Guest
|
Posted:
Fri Nov 11, 2005 9:50 pm Post subject:
Re: Auto populate contacts and automatically update |
|
|
Hi,
I've try all the steps that you show, I don't have any error messages but
when I lunch Office Communicator I don't see the contacts. What I am doing
wrong? I've lunch the script from the LCS Server and like I said with no
error message.
Thank you
Jacques
"Ray Breen" <RayBreen@discussions.microsoft.com> a écrit dans le message de
news:E7F03ADD-942C-4E3C-AADE-E3B53D289EF1@microsoft.com...
> Not a problem, glad its working for you |
|
| Back to top |
|
 |
Ray Breen
Guest
|
Posted:
Fri Nov 11, 2005 9:50 pm Post subject:
Re: Auto populate contacts and automatically update |
|
|
Have you checked the generated output from the dsquery command as i suspect
that you may have the format of the ou statement wrong.
Can you paste the contents of your file.
"Jacques" wrote:
| Quote: | Hi,
I've try all the steps that you show, I don't have any error messages but
when I lunch Office Communicator I don't see the contacts. What I am doing
wrong? I've lunch the script from the LCS Server and like I said with no
error message.
Thank you
Jacques
"Ray Breen" <RayBreen@discussions.microsoft.com> a écrit dans le message de
news:E7F03ADD-942C-4E3C-AADE-E3B53D289EF1@microsoft.com...
Not a problem, glad its working for you
|
|
|
| Back to top |
|
 |
Jacques
Guest
|
Posted:
Mon Nov 14, 2005 5:50 pm Post subject:
Re: Auto populate contacts and automatically update |
|
|
Hi Ray,
Here's the content of the file contacts.txt eith all the space included.
Thanks
msRTCSIP-PrimaryUserAddress
sip:Fchevalier@nordiqlab1.net
sip:gfandrick@nordiqlab1.net
sip:jdemers@nordiqlab1.net
sip:Masevigny@nordiqlab1.net
sip:mlabrecque@nordiqlab1.net
sip:sboisvert@nordiqlab1.net
sip:testlcs@nordiqlab1.net
sip:tquang@nordiqlab1.net
"Ray Breen" <RayBreen@discussions.microsoft.com> a écrit dans le message de
news:E6BB1163-AE0E-4ADF-A288-A652CD3DAE95@microsoft.com...
| Quote: | Have you checked the generated output from the dsquery command as i
suspect
that you may have the format of the ou statement wrong.
Can you paste the contents of your file.
"Jacques" wrote:
Hi,
I've try all the steps that you show, I don't have any error messages
but
when I lunch Office Communicator I don't see the contacts. What I am
doing
wrong? I've lunch the script from the LCS Server and like I said with no
error message.
Thank you
Jacques
"Ray Breen" <RayBreen@discussions.microsoft.com> a écrit dans le message
de
news:E7F03ADD-942C-4E3C-AADE-E3B53D289EF1@microsoft.com...
Not a problem, glad its working for you
|
|
|
| Back to top |
|
 |
Ray Breen
Guest
|
Posted:
Mon Nov 14, 2005 5:50 pm Post subject:
Re: Auto populate contacts and automatically update |
|
|
Hi,
that looks fine,can you tell me the syntax of the commandline that you use
to run the import on
"Jacques" wrote:
| Quote: | Hi Ray,
Here's the content of the file contacts.txt eith all the space included.
Thanks
msRTCSIP-PrimaryUserAddress
sip:Fchevalier@nordiqlab1.net
sip:gfandrick@nordiqlab1.net
sip:jdemers@nordiqlab1.net
sip:Masevigny@nordiqlab1.net
sip:mlabrecque@nordiqlab1.net
sip:sboisvert@nordiqlab1.net
sip:testlcs@nordiqlab1.net
sip:tquang@nordiqlab1.net
"Ray Breen" <RayBreen@discussions.microsoft.com> a écrit dans le message de
news:E6BB1163-AE0E-4ADF-A288-A652CD3DAE95@microsoft.com...
Have you checked the generated output from the dsquery command as i
suspect
that you may have the format of the ou statement wrong.
Can you paste the contents of your file.
"Jacques" wrote:
Hi,
I've try all the steps that you show, I don't have any error messages
but
when I lunch Office Communicator I don't see the contacts. What I am
doing
wrong? I've lunch the script from the LCS Server and like I said with no
error message.
Thank you
Jacques
"Ray Breen" <RayBreen@discussions.microsoft.com> a écrit dans le message
de
news:E7F03ADD-942C-4E3C-AADE-E3B53D289EF1@microsoft.com...
Not a problem, glad its working for you
|
|
|
| Back to top |
|
 |
Jacques
Guest
|
Posted:
Mon Nov 14, 2005 5:50 pm Post subject:
Re: Auto populate contacts and automatically update |
|
|
Hi,
Here's my query
dsquery * "OU=TGI,OU=ANJ,OU=Domain Users,DC=Nordiqlab1,DC=net" -attr
msRTCSIP-PrimaryUserAddress -scope onelevel -limit 10000 > c:\contacts.txt
"Ray Breen" <RayBreen@discussions.microsoft.com> a écrit dans le message de
news:BFC3510E-6A6D-4CBB-B8EF-F4D0345DA697@microsoft.com...
| Quote: | Hi,
that looks fine,can you tell me the syntax of the commandline that you use
to run the import on
"Jacques" wrote:
Hi Ray,
Here's the content of the file contacts.txt eith all the space included.
Thanks
msRTCSIP-PrimaryUserAddress
sip:Fchevalier@nordiqlab1.net
sip:gfandrick@nordiqlab1.net
sip:jdemers@nordiqlab1.net
sip:Masevigny@nordiqlab1.net
sip:mlabrecque@nordiqlab1.net
sip:sboisvert@nordiqlab1.net
sip:testlcs@nordiqlab1.net
sip:tquang@nordiqlab1.net
"Ray Breen" <RayBreen@discussions.microsoft.com> a écrit dans le message
de
news:E6BB1163-AE0E-4ADF-A288-A652CD3DAE95@microsoft.com...
Have you checked the generated output from the dsquery command as i
suspect
that you may have the format of the ou statement wrong.
Can you paste the contents of your file.
"Jacques" wrote:
Hi,
I've try all the steps that you show, I don't have any error
messages
but
when I lunch Office Communicator I don't see the contacts. What I am
doing
wrong? I've lunch the script from the LCS Server and like I said
with no
error message.
Thank you
Jacques
"Ray Breen" <RayBreen@discussions.microsoft.com> a écrit dans le
message
de
news:E7F03ADD-942C-4E3C-AADE-E3B53D289EF1@microsoft.com...
Not a problem, glad its working for you
|
|
|
| Back to top |
|
 |
Ray Breen
Guest
|
Posted:
Mon Nov 14, 2005 5:50 pm Post subject:
Re: Auto populate contacts and automatically update |
|
|
| Ah, I meant the one for the contact update using lcsaddcontacts.wsf :) |
|
| Back to top |
|
 |
|
|
|
|