• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 949
  • Last Modified:

iisvdir /query doesn't return vdirs

32bit - Win2k3 IIS6 running command 'iisvdir /query w3svc/1' returns all of the virtual directories under the root.

On another 32bit - Win2k3 IIS6 command 'iisvdir /query w3svc/1' returns "No virtual sub-directories available."

Both servers have virtual sub directories, but the 2nd server isn't listing them with the iisvdir.  Any ideas?
0
LrdKanien
Asked:
LrdKanien
  • 3
  • 3
1 Solution
 
meverestCommented:
Hello,

permissions maybe?

Try defining interactive user when running the script:

/u [Domain\]User /p Password

e.g.:

iisvdir /u SERVER\Administrator /p adminpass /query w3svc/1

cheers,  Mike.
0
 
LrdKanienAuthor Commented:
ran specifying local adminstrator and same results.
0
 
meverestCommented:
Maybe the default web site has a different number than '1'

try adsutil.vbs to see what the web site IDs are, eg:

c:\inetpub\adminscripts\adsutil.vbs ENUM /P W3SVC

[/W3SVC/1]
[/W3SVC/1174731628]
[/W3SVC/AppPools]
[/W3SVC/Filters]
[/W3SVC/Info]


the result set shows that there is a web site ID 1 as well as ID 1174731628

enumerate the subfolders of that web site by:

c:\inetpub\adminscripts\adsutil.vbs ENUM /P W3SVC/1174731628

..etc..

Cheers.
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
LrdKanienAuthor Commented:
I can use adsutil /enum w3svc/1/root and it will list the vdirs, however iisvdir doesn't.  Also if I try to specify as you have done above it shows as:

C:\Inetpub\AdminScripts>adsutil.vbs ENUM /P W3SVC/[/W3SVC/1]

The path requested could not be found.
ErrNumber: -2147024893 (0x80070003)
Error Trying To ENUM the Object (GetObject Failed): W3SVC/[/W3SVC/1]

Yes the default site has ID1.  I cannot figure out why iisvdir works on one server and not another.

C:\Inetpub\AdminScripts>iisvdir /query w3svc/1
Connecting to server ...Done.
No virtual sub-directories available.

c:\inetpub\adminscripts\adsutil.vbs ENUM /P W3SVC/1/root
[/W3SVC/100059105]
[/W3SVC/1002649854] and so on...
0
 
meverestCommented:
Hi,

>> C:\Inetpub\AdminScripts>adsutil.vbs ENUM /P W3SVC/[/W3SVC/1]

in my examples above, these parts:

[/W3SVC/1]
[/W3SVC/1174731628]
[/W3SVC/AppPools]
[/W3SVC/Filters]
[/W3SVC/Info]

are supposed to be the script output result - not intended as input data.

so just enter this:

C:\Inetpub\AdminScripts>adsutil.vbs ENUM /P W3SVC/

and:

C:\Inetpub\AdminScripts>adsutil.vbs ENUM /P W3SVC/1

C:\Inetpub\AdminScripts>adsutil.vbs ENUM /P W3SVC/Root

etc etc.

Cheers.



0
 
LrdKanienAuthor Commented:
even the boys at M$ had no clue.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now