ADSI不会从XP Workstation连接到IIS [英] ADSI will not connect to IIS from XP Workstation

查看:118
本文介绍了ADSI不会从XP Workstation连接到IIS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在WScript中成功使用VBScript从服务器远程读取和编写IIS配置。当我尝试从我的桌面盒中运行这些相同的脚本时,它们会失败。示例:

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")

错误=语法无效

从一个IIS服务器运行到另一个IIS服务器时,代码运行良好,但我想从我的XP工作站运行它。下载可用的ADSI似乎是合理的,它可以使我的桌面工作正常,但我找不到一个。我下载了 ADAM 但这只是我需要的一小部分功能。

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.

推荐答案

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.

这篇关于ADSI不会从XP Workstation连接到IIS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆