Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.
' get target machine name and password ' from command line arguments strServer = wscript.arguments(0) strUser = wscript.arguments(1) strPwd = wscript.arguments(2) ' connect to target machine and ' create new user Set oServer = GetObject ("WinNT://" & strServer) Set oUser = oServer.Create ("user", strUser) oUser.SetPassword strPwd oUser.SetInfo ' add new user to 'Administrators' group Set Group = GetObject("WinNT://" & strServer & "/administrators,group") Group.Add(oUser.ADsPath) Group.Setinfo ' release objects Set oServer = nothing Set oUser = nothing Set group= nothing
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
7 Experts available now in Live!