vbscript - Cannot convert Group Description to String Variable -
i have following code:
set objholdgroup = getobject("ldap://" & objgroup) strgroupdesc = (objholdgroup.description) wscript.echo(strgroupdesc)
the variable strgroupdesc
returns nothing when echoed. can output description directly need further processing. thoughts?
explanation: apparently script sets option explicit
(good), didn't tell (bad). option makes defining variables before can use them mandatory (good). raise "undefined variable" error, though. since doesn't seem happen code, seem have on error resume next
somewhere in code (very bad), which, again, chose keep quiet (bad).
next time please don't omit parts of code vital troubleshooting problem. , don't use on error resume next
.
Comments
Post a Comment