Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Write default registry key - remotely 2

Status
Not open for further replies.

country73

Technical User
Jan 17, 2003
59
US
We have several computers that will need to have:
[HKLM\Software\Clients\Mail]
the (Default) key changed from "Lotus Notes" to "Microsoft Outlook".
I know that this is changed to whatever you set your Internet Options - Programs - Email:

This is what it looks like when you export the registry key:
Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail]
@="Microsoft Outlook"

Does anyone know if it is possible to write / rewrite a default registry key? If so, how?
 
WMI seems to be the way forward for this type of remote registry manips, should be loads of posts about using WMI remotely...just use the name of the machine instead of '.' markdmac usually posts stuff using txt files as input from the machine names or perhaps getting a list of machines accounts using WinNT://domainname provider.
the regsitry stuff is then one nest in, look for WMI and registry and you should be in like flinnn
 
I've writen to the registry many times, using WMI, but I can't find a way to write to the default key.
I'll look back through WMI, but I didn't see anything for this. (Could have looked right past it in my haste to find the solution though)
 
>but I can't find a way to write to the default key
Just put an empty string as the 3rd parameter of setstringvalue() method.
 
That did it -
strValueName = ""

Sorry for the bother on something I over-looked...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top