Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
I'm obviously just learning vbs and don't full understand what I've put together or whether or not it will do what is needed which is:
Const ADS_UF_DONT_EXPIRE_PASSWD = &h10000 strComputer = "." Set colAccounts = GetObject("WinNT://" & strComputer & "") Set objUser = colAccounts.Create("user", "TestUser") objUser.SetPassword "password" objPasswordExpirationFlag = ADS_UF_DONT_EXPIRE_PASSWD objUser.Put "userFlags", objPasswordExpirationFlag objUser.SetInfo Set objGroup = GetObject("WinNT://" & strComputer & "/Administrators,group") objGroup.Add(ObjUser.ADsPath) set objGroup = Nothing
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.