ADSI 无法从 XP 工作站连接到 IIS
我成功地在 WScript 中使用 VBScript 从服务器远程读取和写入 IIS 配置。 然而,当我尝试从我的办公桌上运行这些相同的脚本时,它们失败了。 示例:
Dim vdir
Set vdir = GetObject("IIS://servername/w3svc/226/root")
Error =“无效语法”
当从一台 IIS 服务器运行到另一台 IIS 服务器时,代码可以完美运行,但我想从我的 XP 工作站运行它。 似乎可以下载 ADSI,使我的桌面工作正常,但我找不到。 我下载了 ADAM 但这只给了我我需要的一小部分功能。
有什么提示吗? 谢谢。
I'm successfully using VBScript within WScript to remotely read and write IIS configurations from the server. When I attempt to run these same scripts from my desk box they fail, though. Example:
Dim vdir
Set vdir = GetObject("IIS://servername/w3svc/226/root")
Error = "Invalid syntax"
The code works perfectly when run from one IIS server to another, but I'd like to run it from my XP Workstation. It would seem reasonable that there's a download of ADSI available that will make things work from my desktop, but I cannot find one. I downloaded ADAM but that only got me a small portion of the functionality I need.
Any hints out there? Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Stephbu 是正确的,这个答案很有帮助,但还不够。 为了从 XP 工作站远程使用 ADSI,我需要安装 IIS 5.1。 安装后,我的所有脚本都开始工作。 如果有一个安装可以使脚本工作而无需将我的计算机设置为 IIS 服务器,我对此一无所知。
Stephbu is correct and that answer was helpful, but it is not sufficient. In order to use ADSI remotely from my XP workstation, I needed to install IIS 5.1. Once that was installed, all my scripts started working. If there is an installation that can make the scripts work without making my computer an IIS server, I am unaware of it.
听起来好像 IIS ADSI 提供程序未安装/注册(可能是 IIS 协议上的语法错误的原因:在字符串中)
只需跟踪提供程序 DLL 的来源 - 怀疑它是通过以下方式安装的:
IIS 6.0 管理包
Sounds like the IIS ADSI Provider isn't installed/registered (probable cause of the syntax error on the protocol IIS: in the string)
Just tracking down where the provider DLLs come from - suspect it gets installed with:
IIS 6.0 Management Pack