⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 page658.vbs

📁 Apress - Managing Enterprise Systems With The Windows Script Host Source Code
💻 VBS
字号:
Set objDir = GetObject("IIS://thor/W3SVC/1/ROOT/images")
'if access is granted by default list the denied IP addresses and domains,
'otherwise list the granted IP adresses and domains
If objDir.IPSecurity.GrantByDefault Then
    Wscript.Echo "IP Addresses denied access"
    For Each obj In objDir.IPSecurity.IPDeny
        Wscript.Echo obj
    Next
    Wscript.Echo "Domains denied access"
    For Each obj In objDir.IPSecurity.DomainDeny
        Wscript.Echo obj
    Next
Else
    Wscript.Echo "IP Addresses granted access"
    For Each obj In objDir.IPSecurity.IPGrant
        Wscript.Echo obj
    Next
    Wscript.Echo "Domains granted access"
    For Each obj In objDir.IPSecurity.DomainGrant
        Wscript.Echo obj
    Next
End If

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -