Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check if iis module exist by appcmd

I need to check if my custom IIS module is installed for my site. I run command bellow:

C:\windows\system32\inetsrv\appcmd.exe list config 'mySite' /section:system.webServer/modules /[name="myModuleName"]

And see the error:

ERROR ( message:The attribute "[name=myModuleName]" is not supported in the current command usage. )

What I am doing wrong?

like image 225
Basil Kosovan Avatar asked Oct 30 '25 18:10

Basil Kosovan


1 Answers

According to your description, I suggest you could try to use below command to achieve your requirement:

appcmd.exe list config "{yoursitename}" -section:system.webServer/modules /text:[name='myModuleName'].type

enter image description here

like image 74
Brando Zhang Avatar answered Nov 01 '25 13:11

Brando Zhang



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!