Can anyone suggest me, how to delete a variable of Type [Object] ?!
For Example:
Set objWMIService = GetObject(“winmgmts:” & “\” & computername & “\root\cimv2”)
If computername is reachable, the objWMIService will be set as Type “[Object]”
In a loop, if any computer is unreachable, the formerly used computer will be used. So i must delete this in the Loop.
Set objWMIService = Nothing doesn’t seem to work, also erase objWMIService doesn’t work.
Anyone any Hints for me ?
THanks in Advance
Juergen