Beranda > Script > Script membuat User pada Active Directory

Script membuat User pada Active Directory

Script dibawah ini adalah untuk membuat user pada active directory. Caranya buka notepad atau editor lain, copy paste script ini dan save jadi *.vbs, kemudian jalankan deh.

—BEGIND SCRIPT—

Set oOU = GetObject(“LDAP://OU=Test,OU=Users,OU=company,DC=contoh,DC=com”)
Set oUser = oOU.Create(“user”, “CN=user test”)

oUser.put “sAMAccountName”, “user test”
oUser.put “displayName”, “user test”
oUser.put “name”, “user test”
oUser.put “givenName”, “user”
oUser.put “sn”, “test”
oUser.put “title”, “title user”
oUser.put “description”, “Description user”
oUser.put “physicalDeliveryOfficeName”, “Jakarta”
oUser.put “telephoneNumber”, “1234567”
oUser.put “department”, “Dept user”
oUser.put “company”, “Comp user”
oUser.put “mail”, “user3_test3@test.com”
oUser.put “scriptPath”,”test.bat”
oUser.put “userPrincipalName”, “user test@contoh.com”
oUser.AccountExpirationDate = “05/15/2011”
oUser.SetInfo
oUser.SetPassword “password”
oUser.AccountDisabled = False
oUser.SetInfo

MsgBox “Add user completed”,,”Information”

—-END SCRIPT—

 

Semoga bermanfaat,

Nana Sutisna

Iklan
Kategori:Script
  1. Juli 25, 2013 pukul 2:52 am

    Additionally, the surgeon will provide a rundown of pre-operation instructions that you should follow.
    Your chances for symmastia are slim, but know that most
    insurance does not cover breast augmentation revision surgeries, and
    so you will likely be paying out of pocket if you do need correctional surgery.
    The scars won’t disappear completely, but they’ll get pretty darn hard to
    see after a few weeks.

  1. Januari 11, 2011 pukul 3:12 pm

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google+

You are commenting using your Google+ account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

w

Connecting to %s

%d blogger menyukai ini: