Asked by:
Running ocsconfigureteluri.wsf script on Windows 2008 SP2 OCS Server

Question
-
When I run the following script on my OCS server, I get the msxml error shown below. I did install MSXML4 on my server before running the script. Has anyone else gotten this to work on a Windows 2008 SP2 server? Thanks for any help - Traci
E:\Program Files\Microsoft Office Communications Server 2007 R2\ResKit\WMI Samples>cscript ocsconfigureteluri.wsf /sipurisfile:UsersSIP.txt phonenumberpatternsfile:phonenumberpatterns.xml
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.- Reading data from xml file: "PhoneNumberPatterns.xml"...
E:\Program Files\Microsoft Office Communications Server 2007 R2\ResKit\WMI Sampl
es\ocsconfigureteluri.wsf(66, 3) WScript.CreateObject: Could not create object n
amed "MSXML2.DomDocument.4.0".
TraciTuesday, June 8, 2010 11:16 PM
All replies
-
are you using the administrator command prompt?
Mark King | MCTS:UC Voice | MCSE: Messaging | MCITP:Enterprise Messaging | CCNA | www.unplugthepbx.comWednesday, June 9, 2010 3:26 PM -
Yes, I am logged into the server as an Administrator/Domain Admin account.
TraciWednesday, June 9, 2010 10:33 PM -
I just tried to run this on a Windows 2003 server and get the same error.
TraciTuesday, July 6, 2010 1:25 PM -
Hi,
in the script, replace the string "MSXML2.DomDocument.4.0" by "MSXML2.DomDocument.6.0", then it works.
- Proposed as answer by Mark A KingMicrosoft employee Friday, August 20, 2010 2:35 PM
Tuesday, July 6, 2010 5:41 PM -
I just did it on Server 2008 and Server 2008 R2 and changing to 6.0 worked!
Thanks
Mark King | MCTS:UC Voice | MCSE: Messaging | MCITP:Enterprise Messaging | CCNA | www.unplugthepbx.comFriday, August 20, 2010 2:35 PM -
I changed it to 6.0 and now I get this error. Any ideas?
C:\Program Files\Microsoft Office Communications Server 2007 R2\ResKit\WMI Sampl
es>cscript ocsconfigureteluri.wsf /sipurisfile:UsersSIP.txt phonenumberpatternsfile:phonenumberpatterns.xml
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.- Reading data from xml file: "PhoneNumberPatterns.xml"...
[debug] oXmlDoc.load "PhoneNumberPatterns.xml"
C:\Program Files\Microsoft Office Communications Server 2007 R2\ResKit\WMI Samples\ocsconfigureteluri.wsf(109, 4) Microsoft VBScript runtime error: This key is
already associated with an element of this collection
TraciThursday, October 7, 2010 5:32 PM