Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Set Domain = GetObject("LDAP://OU=Flight control, DC=flight, DC=com")
  2. Uname = CStr(InputBox("Enter name:","Add account",""))
  3. Password = CStr(InputBox("Enter password:","",""))
  4. Set User = Domain.Create("User", "cn=" & Uname)
  5. User.Put "sAMAccountName", Uname
  6. User.SetInfo
  7. User.SetPassword Password
  8. User.SetInfo
  9.  
  10. WScript.Echo(Uname & " added!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement