[THIN] Re: what's the best way to remove registry keys?

How about exporting the key you want to delete, remove any values in the
.reg file and put a dash in front of the key you want to delete as shown
below:

Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]

Then add it to your login script using a "regedit /s deletekey.reg".

Carl Stalhood
Choice Solutions

-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On
Behalf Of Joe Shonk
Sent: Wednesday, January 22, 2003 5:15 PM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: what's the best way to remove registry keys?


You could launch a vb script, something like:

const HKEY_CURRENT_USER =3D &H80000001
strComputer =3D "."

Set oReg=3DGetObject("winmgmts:{impersonationLevel=3Dimpersonate}!\\" &_
 strComputer & "\root\default:StdRegProv")

strKeyPath =3D "SOFTWARE\Microsoft\..Location..\..to..\..delete\.."
oReg.DeleteValue HKEY_CURRENT_USER,strKeyPath,"Value to delete"

'Joe

-----Original Message-----
From: Roger Riggins [mailto:Roger@xxxxxxxxxxxx]
Sent: Wednesday, January 22, 2003 2:54 PM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] what's the best way to remove registry keys?


Content-Type: text/plain;
        charset=3D"us-ascii"
Content-Transfer-Encoding: quoted-printable

I need to remove some registry keys in hkcu for all users. What's the
best way to do it? Logon script? How do I do it in a logon script if
that's the best way?=3D20
=3D20
Roger Riggins, A+ MCSE CCNA CCA
ACES Systems Engineer
* 319-287-3102
* roger@xxxxxxxxxxxx
=3D20
=3D20



-- No attachments (even text) are allowed --
-- Type: text/x-vcard
-- File: Roger Riggins.vcf
-- Desc: Roger Riggins.vcf


********************************************************************
This Week's Sponsor: RTO Software - TScale
TScale increases Terminal Server capacity. Get 30-40% more users per
server to save $$$ and time. Add users now! - Not more servers.
If you're using Citrix, you must learn about TScale! =20
Free 30-day eval: http://www.rtosoft.com/Enter.asp?ID=3D79
*********************************************************************

For Archives, to Unsubscribe, Subscribe or=20
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm
********************************************************************
This Week's Sponsor: RTO Software - TScale
TScale increases Terminal Server capacity. Get 30-40% more users per
server to save $$$ and time. Add users now! - Not more servers.
If you're using Citrix, you must learn about TScale!  
Free 30-day eval: http://www.rtosoft.com/Enter.asp?ID=79
*********************************************************************

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm



********************************************************************
This Week's Sponsor: RTO Software - TScale
TScale increases Terminal Server capacity. Get 30-40% more users per
server to save $$$ and time. Add users now! - Not more servers.
If you?re using Citrix, you must learn about TScale!  
Free 30-day eval: http://www.rtosoft.com/Enter.asp?ID=79
*********************************************************************

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm

Other related posts: