richardrekos
MIS
I am trying to use an input box to enter a value. I need a username to be entered and then this username (strUser) should be used in line 5 of the script below. I can't get this to work. Can someone show me the correct syntax?
Thanks very much.
strComputer = "rich"
strUser = InputBox("Enter Username: ")
Set objGroup = GetObject("WinNT://" & strComputer & "/customers,group")
Set objUser = GetObject("WinNT://" & strComputer & "/strUser,user")
objGroup.Add(objUser.ADsPath)
Thanks very much.
strComputer = "rich"
strUser = InputBox("Enter Username: ")
Set objGroup = GetObject("WinNT://" & strComputer & "/customers,group")
Set objUser = GetObject("WinNT://" & strComputer & "/strUser,user")
objGroup.Add(objUser.ADsPath)