Home » KBArticles » Unlock account using native windows tools

Unlock account using native windows tools

‘VBSCRIPT

 Set wshShell = Wscript.CreateObject (“WScript.shell”)      
 strUSER =     inputbox(“Enter User Name”,”Enter User Name”)
        wshShell.run “cmd.exe /c dsquery user -name ” & Chr(34) & strUSER & Chr(34) & ” | dsmod user -disabled no & pause”
        set wshshell = nothing

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.