+ 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
    8,327
    Thank Post
    856
    Thanked 868 Times in 520 Posts
    Rep Power
    529
    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
    1,836
    Thank Post
    58
    Thanked 244 Times in 191 Posts
    Rep Power
    77
    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. Delete Profile on LogOff
    By roland in forum How do you do....it?
    Replies: 11
    Last Post: 20th September 2007, 09:43 PM
  2. Script to Delete Profiles - PLEASE HELP
    By Mr_M_Cox in forum Scripts
    Replies: 10
    Last Post: 13th June 2007, 03:51 PM
  3. Script To Change A Registry Key
    By DaveP in forum Windows
    Replies: 6
    Last Post: 7th March 2007, 01: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, 09:52 AM
  5. Replies: 7
    Last Post: 27th November 2005, 11: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
  •