Welcome, Register for free! or Login below:
EduGeek.net RSS Feeds Register FAQ Members Social Groups User Map Calendar Search Today's Posts Mark Forums Read

Scripts If you need or have any scripts then get 'em here.

Go Back   EduGeek.net Forums > Coding and Web Development > Scripts
Reply
 
LinkBack Thread Tools Search Thread
Sponsored Links
Old 13-03-2008, 10:21 PM   #1
 
ICMC's Avatar
 
Join Date: Mar 2008
Posts: 1
uk
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 ICMC is an unknown quantity at this point
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
  Reply With Quote
Old 13-03-2008, 10:29 PM   #2
 
mattx's Avatar
 
Join Date: Jan 2007
Posts: 5,088
uk uk city of london
Thanks: 228
Thanked 442 Times in 277 Posts
Rep Power: 176 mattx ooh
mattx ooh mattx ooh mattx ooh mattx ooh mattx ooh mattx ooh mattx ooh mattx ooh mattx ooh mattx ooh mattx ooh
Default

Use AutoIT's regdelete function:

Code:
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE", "TestKey")
  Reply With Quote
Old 26-01-2009, 10:57 PM   #3
 
KarenO's Avatar
 
Join Date: Jan 2009
Location: Ohio
Posts: 1
usa us ohio
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 KarenO is an unknown quantity at this point
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.
  Reply With Quote
Old 26-01-2009, 11:37 PM   #4
 
PiqueABoo's Avatar
 
Join Date: Jan 2006
Posts: 1,081
uk
Thanks: 15
Thanked 130 Times in 90 Posts
Rep Power: 34 PiqueABoo is a splendid one to behold PiqueABoo is a splendid one to behold PiqueABoo is a splendid one to behold PiqueABoo is a splendid one to behold PiqueABoo is a splendid one to behold PiqueABoo is a splendid one to behold PiqueABoo is a splendid one to behold
Default

Quote:
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 With Quote
Reply

EduGeek.net Forums > Coding and Web Development > Scripts

Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete Profile on LogOff roland How do you do....it? 11 20-09-2007 09:43 PM
Script to Delete Profiles - PLEASE HELP Mr_M_Cox Scripts 10 13-06-2007 03:51 PM
Script To Change A Registry Key DaveP Windows 6 07-03-2007 01:57 PM
how to run a registry patch on shutdown/logoff The_Traveller Windows 13 20-11-2006 09:52 AM
Script to delete all network printers at logoff? woody Scripts 7 27-11-2005 11:41 PM



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search Thread
Search Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:33 AM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright EduGeek.net




website uptime

© 2005 - 2010 EduGeek.net
SERVER: 4
no new posts