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?
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

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