I want to use the following .vbs script to disable viewing of non rated
websites when my son is logged into the computer:
' Begin_Script
Option Explicit
Dim RegKey, WSHShell
Set WSHShell = CreateObject("WScript.Shell")
RegKey =
"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Ratings\.Default\"
WSHShell.RegWrite regkey & "Allow_Unknowns", 0
'End_Script
However, instead of changing:
Allow_unknowns REG_DWORD 0x00000001 (1)
to this:
Allow_unknowns REG_DWORD 0x00000000 (0)
It changes it to:
Allow_unknowns REG_SZ 0
How can I modify my .vbs script to keep it from changing the key from
REG_DWORD to REG_SZ???
Please help...
WSHShell.RegWrite regkey & "Allow_Unknowns", 0 , "REG_DWORD"
AndyC
"Mr NDP" <mr_...@yeahright.yahoo.com> wrote in message
news:3d2d045b$1...@news5.nntpserver.com...