I don't know this ? and $ syntax usage. It fails in vbscript, which language is this? I tried converting it to vbscript, using shares or fileservice as objects but it errors with property or method not supported. Thanks for you reply though, I have found the Resource object is very flaky, sometimes I get a good set other times I do not, I am trying to see if a share directory has locked files in it before attempting to move it. If does I will use the sessions to close the files, this appears to work through .net, if that fails I will execute a shell to close the files via the net files command. I tried the MMC route but got in way over my head. Fortunately most of our 400+ servers are 2003 and the win32_connectionshare object works. Thanks again.