Ok, so the script now looks like this:
struser= WScript.Arguments(0)
Set objUser = GetObject("LDAP://" & struser)
strCity = InputBox("Please enter the name of the city:", _
"Active Directory City Attribute")
If strCity = "" Then
Wscript.Quit
End If
strState = InputBox("Please enter the name of the state:", _
"Active Directory State Attribute")
If strState = "" Then
Wscript.Quit
End If
objUser.Put "l", strCity
objUser.Put "st", strState
objUser.SetInfo
The script has been moved to \\myserver\c$\Program Files (x86)\Lansweeper\Actions
And the action path looks like this:
{actionpath}ModCityState.vbs"{cn}"
But when I run it, I get the following error:
"File Not Found.
\\myserver\lansweeper$\ModCityState.vbs"CN=User1,OU=Users,OU=Site1,DC=Domain"
Note that I replaced the actual AD values with User1, Site1, and Domain in this case.