Is there any way to reset a default value in the registry to completely null
via VBScript?

The only method that has worked for me is deleting the value and letting it
get recreated automatically. However, for the specific key that I need to
change, the Users group has permission to create/change values but not to
delete.

If it helps, the key is HKLM\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources. If
the default value of this key is set to a non-null value, even an empty
string, the ODBC applet will not display any newly created data sources in
the System DSN list.

Re: Resetting the default value by y

y
Wed Jan 25 10:44:45 CST 2006

"Chuck" <Chuck@discussions.microsoft.com> wrote in message
news:E46A2989-A20D-4FDA-9782-5B25DCBE397D@microsoft.com...
> Is there any way to reset a default value in the registry to completely
> null
> via VBScript?
>
> The only method that has worked for me is deleting the value and letting
> it
> get recreated automatically. However, for the specific key that I need to
> change, the Users group has permission to create/change values but not to
> delete.
>
> If it helps, the key is HKLM\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources. If
> the default value of this key is set to a non-null value, even an empty
> string, the ODBC applet will not display any newly created data sources in
> the System DSN list.

You can set Registry Value with script.
But you must know exactly what and value to set.
(Registry does'nt know what is default value for specific Values)
I suppose already know how to handle registry with script.
If you don't know please see this document.
http://msdn.microsoft.com/library/en-us/script56/html/1b567504-59f4-40a9-b586-0be49ab3a015.asp
http://msdn.microsoft.com/library/en-us/script56/html/678e6992-ddc4-4333-a78c-6415c9ebcc77.asp
http://msdn.microsoft.com/library/en-us/script56/html/161db13b-c4ca-4aec-8899-697a4183e82c.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/stdregprov.asp
Y
Sakuda from JPN