Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

iisvdir /query doesn't return vdirs

Posted on 2009-02-13
6
Medium Priority
?
894 Views
Last Modified: 2012-05-06
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
Comment
Question by:LrdKanien
  • 3
  • 3
6 Comments
 
LVL 37

Expert Comment

by:meverest
ID: 23639155
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
 

Author Comment

by:LrdKanien
ID: 23639884
ran specifying local adminstrator and same results.
0
 
LVL 37

Expert Comment

by:meverest
ID: 23642785
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:LrdKanien
ID: 23647655
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
 
LVL 37

Accepted Solution

by:
meverest earned 750 total points
ID: 23648535
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
 

Author Closing Comment

by:LrdKanien
ID: 31546813
even the boys at M$ had no clue.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I came across an interesting issue that had me pulling my hair out.  I was troubleshooting a new internal web site which uses integrated security instead of anonymous.  When browsing the site from my laptop, I was able to access it with no iss…
What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
Loops Section Overview
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month20 days, 17 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question