scipt to ask for input Share on Facebook Post on reddit Tweet on Twitter Share on LinkedIn Home › Forums › Scripting › General Scripting › scipt to ask for input This topic has 1 reply, 2 voices, and was last updated 13 years ago by themanwhowouldbeking. Viewing 1 post (of 1 total) Author Posts mmooreMember Sep 13, 2007 at 1:41 pm #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 . Author Posts Viewing 1 post (of 1 total) You must be logged in to reply to this topic.