Re: Updating registry keys for Internet Explorer bombs-out



It looks like the problem is the lack of quotes
around your IP addresses. You list them as
string values.
--
mayayanaXX1a@xxxxxxxxxxxxxxxx
(Remove Xs for return email.)
John Lumadue <jlumadue@xxxxxxxxxxx> wrote in message
news:eJn7rXFGGHA.3036@xxxxxxxxxxxxxxxxxxxxxxx
> I have a script that I am updating Internet Explorer settings for the
> current user. I works fine for the most part, however, the problem is
that
> when it gets to the ip addresses, it bombs-out. How to I add the ip
> addresses? Here is the script I am using (with specific info replaced for
> privacy):
>
> Set objShell = WScript.CreateObject("WScript.Shell")
> objShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\SyncMode5", 2, "REG_DWORD"
> objShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\ZoneMap\Domains\[server name1]\https", 2, "REG_DWORD"
> objShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\ZoneMap\Domains\[server name2]\https", 2, "REG_DWORD"
> objShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\ZoneMap\Domains\[server name3]\https", 2, "REG_DWORD"
> objShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\ZoneMap\Domains\[server name4]\https", 2, "REG_DWORD"
> objShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\ZoneMap\Ranges\Range1\https", 2, "REG_DWORD"
> objShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\ZoneMap\Ranges\Range1\:Range", 10.0.0.1, "REG_SZ"
> objShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\ZoneMap\Ranges\Range2\https", 2, "REG_DWORD"
> objShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\ZoneMap\Ranges\Range2\:Range", 10.0.0.2, "REG_SZ"
> objShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\ZoneMap\Ranges\Range3\https", 2, "REG_DWORD"
> objShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\ZoneMap\Ranges\Range3\:Range", 10.0.0.3, "REG_SZ"
> objShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\ZoneMap\Ranges\Range4\https", 2, "REG_DWORD"
> objShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\ZoneMap\Ranges\Range4\:Range", 10.0.0.4, "REG_SZ"
>
>


.



Relevant Pages

  • Re: How to pass string in command line argument.
    ... > I want to pass a command argument to perl script with double quotes (" ... > just a straight string is geeting passed ...
    (perl.beginners)
  • Re: basic help to run an application from WSH
    ... The Run method requires at least one argument, which is a string. ... string values must be enclosed in quotes. ... The Run method will execute on c:\notepad.exe. ... I'm just learning vbscript for wsh and here is my first script, ...
    (microsoft.public.scripting.vbscript)
  • Re: How to pass string in command line argument.
    ... Perl Pra wrote: ... i have perl script that searches given string (the string should be passed ... The string should be sent to the script with double quotes attached to it ...
    (perl.beginners)
  • Re: How to pass string in command line argument.
    ... i have perl script that searches given string (the string should be passed ... The string should be sent to the script with double quotes attached to it ...
    (perl.beginners)
  • Re: running vbscript syntax error
    ... A string must be passed to the Run method. ... The double quotes in the string are resolved to single quotes. ... To troubleshoot, run a script where you define the value of strCmd as above, ... is a syntax error, perhaps due to unbalanced quotes, you can fix it. ...
    (microsoft.public.scripting.vbscript)