China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 21:23
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How do I access the root\MicrosoftIISv2 path in a BAT file? View 937 Replies 6
Original Poster Posted 2010-02-02 10:11 ·  中国 广东 深圳 电信
初级用户
Credits 59
Posts 27
Joined 2005-12-09 17:52
20-year member
UID 46796
Status Offline
It doesn't list anything related to this path.

How do you view and operate IIS in wmic?
Floor 2 Posted 2010-02-02 10:46 ·  中国 湖北 荆门 电信
初级用户
★★
Credits 186
Posts 117
Joined 2006-08-14 14:50
19-year member
UID 60491
Status Offline
wmic
/role:\\root\MicrosoftIISv2
Do you mean something like this?
If you want to know what's under it, you can use the following vbs:

For Each x In GetObject("Winmgmts:\root\MicrosoftIISv2").SubClassesOf
WScript.Echo x.path_
Next

Floor 3 Posted 2010-02-02 11:22 ·  中国 广东 深圳 电信
初级用户
Credits 59
Posts 27
Joined 2005-12-09 17:52
20-year member
UID 46796
Status Offline
I don't want to use vbs. The efficiency is too low. Once wscript.exe locks up, it's all over.
Floor 4 Posted 2010-02-02 11:22 ·  中国 广东 深圳 电信
初级用户
Credits 59
Posts 27
Joined 2005-12-09 17:52
20-year member
UID 46796
Status Offline
Can't this be done with bat cmd?
Floor 5 Posted 2010-02-02 11:22 ·  中国 广东 深圳 电信
初级用户
Credits 59
Posts 27
Joined 2005-12-09 17:52
20-year member
UID 46796
Status Offline
wmic path win32_ I didn't find anything related to IIS in this namespace.
Floor 6 Posted 2010-02-02 12:10 ·  中国 湖北 荆门 电信
初级用户
★★
Credits 186
Posts 117
Joined 2006-08-14 14:50
19-year member
UID 60491
Status Offline
Originally posted by DebianGrub at 2010-2-2 11:22:
I don't want to use vbs. The efficiency is too low. Once wscript.exe locks up, it's all over.

I admit it: I'm bored out of my mind, and can't stay calm.

Originally posted by DebianGrub at 2010-2-2 11:22:
wmic path win32_ I didn't find anything related to IIS in this namespace.

I don't know whether what you want is a namespace or a class.
I only know that you can't tell a tiger from a mouse.
Floor 7 Posted 2010-02-05 12:10 ·  中国 广东 深圳 电信
初级用户
Credits 59
Posts 27
Joined 2005-12-09 17:52
20-year member
UID 46796
Status Offline
It should be possible to handle IIS settings under cmd, right? Without using vbs, things like iisweb.vbs. Using WMI?
I saw that it does have root\MicrosoftIISv2
there
but in wmic /?
I looked through the help and didn't find any alias related to IIS.
Forum Jump: