I am trying to create a script to pre-configure all Netmeeting settings.
Currently I am having an issue with one array value when adding a Binay
registry entry. When the script listed below runs on a 98SE client with the
WMI Core 5.2 installed I get this message:
Line: 18
Char: 27
Error: Expected ')'
Code: 800A03EE
Source Microsoft VBScript compliation error
Any help would be apreciated!!----Thanks
-----------------Start of Script------------------------------
Const HKEY_CURRENT_USER = &H80000001
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &
strComputer & "\root\default:StdRegProv")
Set objRegistry = GetObject ("winmgmts:\\" & strComputer &
"\root\default:StdRegProv")
strKeyPath = "Software\Policies\Microsoft\Conferencing"
strKeyPath1 = "SOFTWARE\Microsoft\User Location Service\Client"
strKeyPath2 = "Software\Microsoft\Conferencing"
strValue0 = "0"
strValue1 = "1"
'Disable running Wizard
strValueName = "WizardUI"
arrValues = Array(11,0D,04,04)
errReturn = objRegistry.SetBinaryValue
(HKEY_CURRENT_USER,strKeyPath2,strValueName,arrValues)
------------------END----------------------
Tim - 11 May 2005 19:41 GMT
Keith Templin wrote...
> I am trying to create a script to pre-configure all Netmeeting settings.
> Currently I am having an issue with one array value when adding a Binay
[quoted text clipped - 3 lines]
> Line: 18
> Char: 27
line 18 arrValues = Array(11,0D,04,04)
arrValues = Array(&H11, &H0D, &H04, &H04)
Larry Serflaten - 12 May 2005 02:27 GMT
> I am trying to create a script to pre-configure all Netmeeting settings.
> Currently I am having an issue with one array value when adding a Binay
> registry entry.
> Line: 18
> Char: 27
[quoted text clipped - 3 lines]
>
> Any help would be apreciated!!----Thanks
It seems to be pointing at the D in the line
> arrValues = Array(11,0D,04,04)
How about using 13, instead of 0D ???
You might want to check exactly what 'decimal' values are needed.
It appears you attempted to use 'hexidecimal' values which require
special notation:
> arrValues = Array(&H11, &H0D, &H04, &H04)
(Obviously 4 is the same in both, but you get the idea....)
Double check those values to determine if they need to be in decimal
(as Array readily accepts) or in hexidecimal (which requires special
notation)....
In that this is VBScript, you should be asking your WMI questions
in one of the scripting groups, or perhaps even the WMI group.
The vb.* groups are for the full featured version of VB....
(Adding your questions to the appropreate group helps insure others
searching for similar answers can find them when looking in the
associated groups)
HTH
LFS