ADSI Script Close Sessions

  • Thread starter Thread starter Carlos Castillo
  • Start date Start date
C

Carlos Castillo

I am trying to use the IADsFileServiceOperations to disconnect a resource.
Here is my syntax...

Dim fso As IADsFileServiceOperations, Resource As IADsresource
Set fso = GetObject("WinNT://Domain/Computer/LanmanServer")

For Each Resource In fso.Resources
fso.Resources.Remove Resource.Name
Next

I'm getting an error that says object doesn't support this Method. Any help
would be appreciated.
 
Back
Top