That works too... Just that the - will delete the entire key and all = values under it. The vb script will delete specific values. Some = people call values keys, so I though I'd go that route. If he wants to = blow tho who key away, the registry script is an easier way to go. Joe -----Original Message----- From: Carl Stalhood [mailto:cstalhood@xxxxxxxxxxxxx] Sent: Wednesday, January 22, 2003 6:45 PM To: thin@xxxxxxxxxxxxx Subject: [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 =3D3D &H80000001 strComputer =3D3D "." Set = oReg=3D3DGetObject("winmgmts:{impersonationLevel=3D3Dimpersonate}!\\" &_ strComputer & "\root\default:StdRegProv") strKeyPath =3D3D "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=3D3D"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?=3D3D20 =3D3D20 Roger Riggins, A+ MCSE CCNA CCA ACES Systems Engineer * 319-287-3102 * roger@xxxxxxxxxxxx =3D3D20 =3D3D20 -- 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! =3D20 Free 30-day eval: http://www.rtosoft.com/Enter.asp?ID=3D3D79 ********************************************************************* For Archives, to Unsubscribe, Subscribe or=3D20 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! =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! =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