Thank you for taking time to read this.
In my example below when I run this, the asset number for computer name MIS554419 is returned. I constantly am changing the computer name to query for information I am seeking. I desperatley need help with a input statement that will take the pc name that is plugged and return the data.
Thank You!
Set objUser= GetObject("LDAP://CN=MIS554419,CN=Computers,DC=Bank,DC=phila,DC=gov"
strAssetnumber = objUser.Get("assetNumber"
Wscript.Echo "PropertyTag:" &strAssetnumber
In my example below when I run this, the asset number for computer name MIS554419 is returned. I constantly am changing the computer name to query for information I am seeking. I desperatley need help with a input statement that will take the pc name that is plugged and return the data.
Thank You!
Set objUser= GetObject("LDAP://CN=MIS554419,CN=Computers,DC=Bank,DC=phila,DC=gov"
strAssetnumber = objUser.Get("assetNumber"
Wscript.Echo "PropertyTag:" &strAssetnumber