Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / VB Syntax / May 2005



Tip: Looking for answers? Try searching our database.

Error Code:

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Keith Templin - 11 May 2005 19:30 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.  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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.