The pretask trigger with UserCreate will Automatically set up the OCS 2007 properties when creating a new user object. The script has logic to look at the domain name where the user is being created and set the sip address and pool appropriately. Below there are 2 domains called acme and the other is brick. Based on the domain, it sets the OCS pool property and sip address appropriately. To implement you will need to modify the lines below to reference the name of the domains in your environment and update the homeserver path to the appropriate pool string.

If InStr(LCase(strlocation),"acme") > 0 Then
'set homeserver
homeserver = "CN=LC Services,CN=Microsoft,CN=LCS-BEL1,CN=Pools,CN=RTC Service,CN=Microsoft,CN=System,DC=Amce,DC=com"

'set Sip address
VarSet.Put "In.Properties.msRTCSIP-PrimaryUserAddress","sip:"& strfirst & "." & strlast & "@Acme.com"

End If

If InStr(LCase(strlocation),"brick") > 0 Then
'set homeserver
homeserver = "CN=LC Services,CN=Microsoft,CN=LCS01,CN=Pools,CN=RTC Service,CN=Microsoft,CN=System,DC=brick,DC=corp"

'set Sip address
VarSet.Put "In.Properties.msRTCSIP-PrimaryUserAddress","sip:"& strfirst & "." & strlast & "@brick.com"

end If

NetIQ does not test or validate any software, code or other materials provided in, on or through NetIQ Cool Solutions (collectively, "Materials"), so please use caution when downloading or accessing any Materials from Cool Solutions and ensure that you have reasonable and current security, spyware and anti-virus measures in place on your computer and/or network prior to downloading. Additionally, do not use any Materials downloaded from Cool Solutions in any production environment without first testing the Materials to ensure they are compatible with your version of NetIQ software or any other hardware or software present in your network or environment. Cool Solutions is not a substitute for authorized NetIQ support and should not be used as such. NETIQ COOL SOLUTIONS AND ANY MATERIALS ARE PROVIDED ON AN AS-IS, AS-AVAILABLE BASIS WITHOUT ANY WARRANTY OF ANY KIND. By downloading this file, you are agreeing to these terms of use. To report a problem please contact: coolguys-netiq@netiq.com. Your use of Cool Solutions is governed by the Cool Solutions Terms and Conditions. https://www.netiq.com/communities/coolsolutions/terms-and-conditions/
Labels (1)


Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
3 of 3
Last update:
‎2020-03-10 17:03
Updated by:
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.