Duh! There is no need to check for admin rights cuz it's an admin script. [Confused]
HEHEE
$ = WriteProfileString($ResultsINI,$comp,'LastError',@Date + ', ' + @Time + ' - ' + @SError)

We talked about both the AD property and the local property.

$adsComputer.Description = $ADdesc ;local server comment
$ADProp.setinfo ;AD computer property

I figured the ADSI provider would have been a good enough clue. [Wink]

If you plan to use Howard's InContainer() UDF, note that I modified it to also return the DN ($RC[[3]). I suspect though, that for your needs, you would not need that UDF.

[ 12. October 2003, 13:22: Message edited by: LLigetfa ]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.