+ Post New Thread
Results 1 to 4 of 4
Scripts Thread, logoff script to delete registry key in Coding and Web Development; I need a log off script to delete the HKEY_CURRENT_USER\Software\Microsoft\EAPOL key. Can anyone help...
  1. #1

    Join Date
    Mar 2008
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    logoff script to delete registry key

    I need a log off script to delete the HKEY_CURRENT_USER\Software\Microsoft\EAPOL key. Can anyone help

  2. #2

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,068 Times in 625 Posts
    Rep Power
    740
    Use AutoIT's regdelete function:

    Code:
    RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE", "TestKey")

  3. #3

    Join Date
    Jan 2009
    Location
    Ohio
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Delete registy key and subvalues

    To delete a registry key and its subvalues:

    REG DELETE HKLM\Software\TestKey /f

    (Available in Microsoft Server Resource Kit - free download - I used the 2003 ResKit - and just put the code in notepad)

    Also, there are a lot of other registry functions with this command like: add, copy, save, load, restore, compare... (REG ADD, REG LOAD, etc). And within each function --> there are more switches. Very nice.

  4. #4

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    2,178
    Thank Post
    74
    Thanked 307 Times in 243 Posts
    Rep Power
    115
    Available in Microsoft Server Resource Kit
    reg.exe? That's in XP by default.

    Whatever, I use that. Ultimately, if it's XP native and does the trick then that's what you should use... less of anything added to a system is definitely more.

SHARE:
+ Post New Thread

Similar Threads

  1. Script to Delete Profiles - PLEASE HELP
    By Mr_M_Cox in forum Scripts
    Replies: 13
    Last Post: 22nd February 2013, 03:53 PM
  2. Delete Profile on LogOff
    By roland in forum How do you do....it?
    Replies: 11
    Last Post: 20th September 2007, 09:43 PM
  3. Script To Change A Registry Key
    By DaveP in forum Windows
    Replies: 6
    Last Post: 7th March 2007, 12:57 PM
  4. how to run a registry patch on shutdown/logoff
    By The_Traveller in forum Windows
    Replies: 13
    Last Post: 20th November 2006, 08:52 AM
  5. Replies: 7
    Last Post: 27th November 2005, 10:41 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •