Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

VB Help

Thread Tools
 
Search this Thread
 
Old 07 January 2003, 12:21 PM
  #1  
monkeyboy
Scooby Regular
Thread Starter
 
monkeyboy's Avatar
 
Join Date: May 2002
Location: Hanging around sussex
Posts: 563
Likes: 0
Received 0 Likes on 0 Posts
Unhappy

OK then guys cos i pickled my brain over the festive season I need some help please.

I need to ammend the following reg key from 2 to 1 in a VB script.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Lsa]
"restrictanonymous"=dword:00000002

Anyone got any ideas?
Old 07 January 2003, 12:29 PM
  #2  
Fosters
Scooby Regular
 
Fosters's Avatar
 
Join Date: Jul 2000
Location: Islington
Posts: 2,145
Likes: 0
Received 0 Likes on 0 Posts
Post

not tried it, but found this example:
Dim WSHShell
Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.Popup "Create key HKCU\MyRegKey with value 'Top level key'"
WSHShell.RegWrite "HKCU\MyRegKey\", "Top level key"
WSHShell.Popup "Create key HKCU\MyRegKey\Entry with value 'Second level
key'"
WSHShell.RegWrite "HKCU\MyRegKey\Entry\", "Second level key"
WSHShell.Popup "Set value HKCU\MyRegKey\Value to REG_SZ 1"
WSHShell.RegWrite "HKCU\MyRegKey\Value", 1
WSHShell.Popup "Set value HKCU\MyRegKey\Entry to REG_DWORD 2"
WSHShell.RegWrite "HKCU\MyRegKey\Entry", 2, "REG_DWORD"
WSHShell.Popup "Set value HKCU\MyRegKey\Entry\Value1 to REG_BINARY 3"
WSHShell.RegWrite "HKCU\MyRegKey\Entry\Value1", 3, "REG_BINARY"
WSHShell.Popup "Delete value HKCU\MyRegKey\Entry\Value1"
WSHShell.RegDelete "HKCU\MyRegKey\Entry\Value1"
WSHShell.Popup "Delete key HKCU\MyRegKey\Entry"
WSHShell.RegDelete "HKCU\MyRegKey\Entry\"
WSHShell.Popup "Delete key HKCU\MyRegKey"
WSHShell.RegDelete "HKCU\MyRegKey\"
Old 07 January 2003, 01:03 PM
  #3  
Devil's Refugee
Scooby Regular
 
Devil's Refugee's Avatar
 
Join Date: May 2002
Posts: 1,653
Likes: 0
Received 0 Likes on 0 Posts
Post

Christ Fosters, and you're worried about interview techniques ??!




All times are GMT +1. The time now is 07:34 AM.