tags:

views:

365

answers:

2

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.

+1  A: 

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

stephbu
+1  A: 

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.

codepoke