尝试访问Lanmanserver时访问被拒绝错误

时间:2013-09-19 05:37:46

标签: .net vbscript windows-server-2008

我尝试使用vb脚本通过ADSI WinNT访问Lanmanserver,

Set FileShare = GetObject("WinNT://wn0home/LanmanServer")

For Each ShareObj in FileShare
    WScript.Echo ShareObj.Name & " = " & ShareObj.Path
Next

但是,我一直在 Active Directory:常规访问被拒绝错误

这里有人熟悉这个吗?

1 个答案:

答案 0 :(得分:0)

该行应为,

WScript.Echo ShareObj.Name & " = " & ShareObj.AdsPath