+ Reply to Thread
Results 1 to 4 of 4

Thread: logoff script to delete registry key

  Share/Bookmark
  1. #1

    Reputation

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

    Default 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

    Reputation Reputation
    Reputation Reputation Reputation Reputation Reputation
    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    6,024
    Thank Post
    409
    Thanked 559 Times in 347 Posts
    Rep Power
    234

    Default

    Use AutoIT's regdelete function:

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

  3. #3

    Reputation

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

    Default 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

    Reputation Reputation Reputation Reputation Reputation Reputation Reputation Reputation

    Join Date
    Jan 2006
    Posts
    1,356
    Thank Post
    26
    Thanked 172 Times in 127 Posts
    Rep Power
    44

    Default

    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Similar Threads

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

Posting Permissions

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