scipt to ask for input

Home Forums Scripting General Scripting scipt to ask for input

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    mmoore
    Member
    #127749

    okay mine is sort of hard. i ahve a script that disable a user account in AD and hides from directory.

    i am trying to get an input box and then have that put in script so it is universal and i can use it for anyone that needs disabled …where i just put in the name. here is the script i am using .

    Const ADS_UF_ACCOUNTDISABLE = 2

    Set objUser = GetObject _
    (“LDAP://cn=fall guy,cn= users,dc=test,dc=local”)
    intUAC = objUser.Get(“userAccountControl”)

    objUser.Put “userAccountControl”, intUAC OR ADS_UF_ACCOUNTDISABLE
    objUser.SetInfo

    objUser.HideFromAddressBook = True
    objUser.SetInfo

    it works fine if i change fall guy name to the name i want but i would rather just have an input box and it put the result there and run … any help would be great .

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.