none
SetDwordValue not working RRS feed

  • Question

  • Const HKEY_CLASSES_ROOT= &H80000000
    Const HKEY_CURRENT_USER= &H80000001
    Const HKEY_LOCAL_MACHINE= &H80000002
    Const HKEY_USERS= &H80000003
    Set StdOut = WScript.StdOut
    Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
    
    strKeyPath = "SYSTEM\CurrentControlSet\Hardware Profiles\UnitedVideo\CONTROL\VIDEO\{D218E173-A430-11E8-80D8-005056C00008}\0001"
    strValueName = "venkat"
    oReg.SetDWordValue   HKEY_LOCAL_MACHINE, strKeyPath, strValueName, 800
    oReg.GetDWordValue   HKEY_LOCAL_MACHINE, strKeyPath, strValueName, dval
    WScript.Echo "SYSTEM\CurrentControlSet\Control\"  & " = " &  dval

    Am running in windows 10. 

    SetDWordValue of vbs is not working

    GetDwordValue working fine and am getting the data.

    Tried all the possibilities. Even the code from msdn is not working. I want to change my registry key using vbs

    please help me.


    Venkatesan Prabu .J www.kaashivinfotech.com http://venkattechnicalblog.blogspot.com/

    Tuesday, July 30, 2019 11:49 PM

All replies

  • Hi,

    According to your description, your issue is more related about VBS. And this forum is discussing and asking questions about the vb.net.
    Ask in the following forum.

    https://social.technet.microsoft.com/Forums/scriptcenter/en-us/home?forum=ITCG

    Best Regards,

    Alex


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, July 31, 2019 1:44 AM