Thanks, I had gone down that path and it didn't work it out at first. What was going wrong was that the count would increment based on the admin shares but the enumeration can not handle it. I may be able to work that out with the Drive object.
I am trying to test for the existance of shares on a server. I can create a reference to the Lanmanserver object and enumerate the names of the existing shares but if there are no shares the script fails with and "Object required error" I know this is something simple but...
Sample...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.