Chnage registry kay value using a vbscript

Discussion in 'Scripting' started by Aslam, Dec 13, 2003.

  1. Aslam

    Aslam Guest

    Hi All,

    Can I change a resistry value using a vbscript.

    Actually i want to change this value in reg

    NT\CurrentVersion\Winlogon\"AutoAdminLogon"="0" to


    CAn I do this ???

    Thanks in Advance
    Aslam, Dec 13, 2003
    1. Advertisements

  2. Aslam

    Dave Patrick Guest

    Dim WshShell
    Set WshShell=WScript.CreateObject("WScript.Shell")
    WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows NT\" _
    & "CurrentVersion\Winlogon\AutoAdminLogon", "0", "REG_SZ"
    Set WshShell=Nothing
    Dave Patrick, Dec 13, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.