-
February 20th, 2012, 12:15 AM
#1
registry change
i am trying to simply change a registry value for a linksys wlan adapter using some vb script. The script is below: when i run this from cmd line with cscript i dont see the change in the registry.
const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\"&_
strComputer & "\root\default:StdRegProv")
dim return
return = objReg.SetStringValue (HKEY_LOCAL_MACHINE, "SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0033", "MPC","1")
-
February 20th, 2012, 01:29 AM
#2
Re: registry change
What OS are you running...
Some OS's have locked parts of the registry, so that scripts like this cant cause havoc on the system..
AFAIK. not even Admin privileges allows the Reg to be written...
Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
WPF Articles : 3D Animation 1 , 2 , 3
Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.
-
February 20th, 2012, 09:53 AM
#3
Re: registry change
thanks for the reply. this is a windows xp sp3 pc. if it helps: i am able to go into the regedit and change this value.
thanks!!
-
February 20th, 2012, 11:52 AM
#4
Re: registry change
Try to export it, then CHANGE it. You can IMPORT it then.
-
February 21st, 2012, 01:11 AM
#5
Re: registry change
Originally Posted by avlbryan
thanks for the reply. this is a windows xp sp3 pc. if it helps: i am able to go into the regedit and change this value.
thanks!!
Regedit has 100% access to the reg.. It's other app's that are locked out from writing to .. LocalMachine, CurrentConfig & Users reg.. And parts of the CurrentUser reg is also locked..
Now the next question is Why do you want to change this reg entry, there may be another way to get to what you want....
Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
WPF Articles : 3D Animation 1 , 2 , 3
Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|