|
-
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")
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
|