Richard,

this might be tidier but if I run this on my Machine (W2K SP4) it returns nothing ... @error of GetObject is 0, substr of %LOGONSERVER% is correct

This is the second time that a cimv2 script fails for me this week
For me it turns out that Wee Em Aye is not that reliable
_________________________