Done it again.....
A bit of deeper digging revealed this VBScript, which does the trick where
lcsenableconfigureusers was failing me
*
' Username and password of a member of the RTCDomainUserAdmins group
strAdminUsername = "CN=xxxx,OU=xxx,OU=xxx,DC=xxx,DC=xxx,DC=xx"
strAdminPassword = "xxxxxx"
' Username of user to be activated for LCS
strUsername = "CN=xxx,OU=Users,OU=xxx,DC=xx,DC=xx,DC=xx"
' Bind to user object with LCS User Admin privilege
Set objNameSpace = GetObject("LDAP:")
Set objUser = objNameSpace.OpenDSObject("LDAP://" & strUsername,
strAdminUsername, strAdminPassword, 0)
' Enable LCS
objUser.Put "msRTCSIP-UserEnabled", True
' Set SIP URI to email address
objUser.Put "msRTCSIP-PrimaryUserAddress", "sip:" & objUser.mail
' Set Primary Home Server
objUser.Put "msRTCSIP-PrimaryHomeServer", "CN=LC Services,CN=Microsoft,CN=**
servername**,CN=Pools,CN=RTC
Service,CN=Microsoft,CN=System,DC=york,DC=gov,DC=uk"
' Enable federation
'objUser.Put "msRTCSIP-FederationEnabled", True
' Enable public IM connectivity
'objUser.Put "msRTCSIP-InternetAccessEnabled", True
' Enable remote user access
'objUser.Put "msRTCSIP-OptionFlags", 1
' Commit changes
objUser.SetInfo*
On 16 March 2011 10:12, James Rankin <[email protected]> wrote:
> Has anyone got any examples they'd care to share of using
> *lcsenableconfigureusers.wsf
> *from the OCS 2007 Resource Kit to configure users for Communications
> Server from the command line? I'm struggling to get this to work and I am
> sure it is the syntax of my users or config files that is somewhat
> errant.....
>
>
> TIA,
>
>
>
> JRR
>
> --
> "On two occasions...I have been asked, 'Pray, Mr Babbage, if you put into
> the machine wrong figures, will the right answers come out?' I am not able
> rightly to apprehend the kind of confusion of ideas that could provoke such
> a question."
>
> *IMPORTANT: This email is intended for the use of the individual
> addressee(s) named above and may contain information that is confidential,
> privileged or unsuitable for overly sensitive persons with low self-esteem,
> no sense of humour or irrational religious beliefs. If you are not the
> intended recipient, any dissemination, distribution or copying of this email
> is not authorised (either explicitly or implicitly) and constitutes an
> irritating social faux pas.
>
> Unless the word absquatulation has been used in its correct context
> somewhere other than in this warning, it does not have any legal or no
> grammatical use and may be ignored. No animals were harmed in the
> transmission of this email, although the kelpie next door is living on
> borrowed time, let me tell you. Those of you with an overwhelming fear of
> the unknown will be gratified to learn that there is no hidden message
> revealed by reading this warning backwards, so just ignore that Alert Notice
> from Microsoft.
>
> However, by pouring a complete circle of salt around yourself and your
> computer you can ensure that no harm befalls you and your pets. If you have
> received this email in error, please add some nutmeg and egg whites, whisk
> and place in a warm oven for 40 minutes.*
>
>
--
"On two occasions...I have been asked, 'Pray, Mr Babbage, if you put into
the machine wrong figures, will the right answers come out?' I am not able
rightly to apprehend the kind of confusion of ideas that could provoke such
a question."
*IMPORTANT: This email is intended for the use of the individual
addressee(s) named above and may contain information that is confidential,
privileged or unsuitable for overly sensitive persons with low self-esteem,
no sense of humour or irrational religious beliefs. If you are not the
intended recipient, any dissemination, distribution or copying of this email
is not authorised (either explicitly or implicitly) and constitutes an
irritating social faux pas.
Unless the word absquatulation has been used in its correct context
somewhere other than in this warning, it does not have any legal or no
grammatical use and may be ignored. No animals were harmed in the
transmission of this email, although the kelpie next door is living on
borrowed time, let me tell you. Those of you with an overwhelming fear of
the unknown will be gratified to learn that there is no hidden message
revealed by reading this warning backwards, so just ignore that Alert Notice
from Microsoft.
However, by pouring a complete circle of salt around yourself and your
computer you can ensure that no harm befalls you and your pets. If you have
received this email in error, please add some nutmeg and egg whites, whisk
and place in a warm oven for 40 minutes.*
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin