I'm not 100% that I'm posting this question in the correct forum, but I'm writing the script in vbs, so it seemed reasonable enough..
Anyway, I've a got a simple script to list the network resources on the server. It starts off fine, but it part way through it will display the .Name property but fail when it tries to read .User with "Active Directory: The Active Directory property cannot be found in the cache."
Is there something I'm missing here? I've got no idea what the problem is, if someone could point me in the right direction it would be much appreciated.
Thanks in advance,
Dan.
Set adsComputer = GetObject("WinNT://domain/server/LanManServer")
For Each adsResource In adsComputer.Resources
WScript.Echo adsResource.Name
WScript.Echo adsResource.User
WScript.Echo adsResource.Path
Next
Anyway, I've a got a simple script to list the network resources on the server. It starts off fine, but it part way through it will display the .Name property but fail when it tries to read .User with "Active Directory: The Active Directory property cannot be found in the cache."
Is there something I'm missing here? I've got no idea what the problem is, if someone could point me in the right direction it would be much appreciated.
Thanks in advance,
Dan.
Set adsComputer = GetObject("WinNT://domain/server/LanManServer")
For Each adsResource In adsComputer.Resources
WScript.Echo adsResource.Name
WScript.Echo adsResource.User
WScript.Echo adsResource.Path
Next