Posted in
Windows Powershell |
No Comment | 1,031 views | 26/07/2015 17:32
These are IIS Website Client Access Information properties that you can get using CIM via PowerShell.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| # Get WebSites
$WebSites = Get-CimInstance -Namespace "root\MicrosoftIISv2" -ClassName "IIsWebServerSetting" -OperationTimeoutSec 15 -EA Stop
$WebSite = $WebSites[0];
# WebSite Client Access Information
[string]$WebSiteAccessExecute = $WebSite.AccessExecute
[string]$WebSiteAccessFlags = $WebSite.AccessFlags
[string]$WebSiteAccessNoPhysicalDir = $WebSite.AccessNoPhysicalDir
[string]$WebSiteAccessNoRemoteExecute = $WebSite.AccessNoRemoteExecute
[string]$WebSiteAccessNoRemoteRead = $WebSite.AccessNoRemoteRead
[string]$WebSiteAccessNoRemoteScript = $WebSite.AccessNoRemoteScript
[string]$WebSiteAccessNoRemoteWrite = $WebSite.AccessNoRemoteWrite
[string]$WebSiteAccessRead = $WebSite.AccessRead
[string]$WebSiteAccessScript = $WebSite.AccessScript
[string]$WebSiteAccessSource = $WebSite.AccessSource
[string]$WebSiteAccessSSL = $WebSite.AccessSSL
[string]$WebSiteAccessSSL128 = $WebSite.AccessSSL128
[string]$WebSiteAccessSSLFlags = $WebSite.AccessSSLFlags
[string]$WebSiteAccessSSLMapCert = $WebSite.AccessSSLMapCert
[string]$WebSiteAccessSSLNegotiateCert = $WebSite.AccessSSLNegotiateCert
[string]$WebSiteAccessSSLRequireCert = $WebSite.AccessSSLRequireCert
[string]$WebSiteAccessWrite = $WebSite.AccessWrite |
# Get WebSites
$WebSites = Get-CimInstance -Namespace "root\MicrosoftIISv2" -ClassName "IIsWebServerSetting" -OperationTimeoutSec 15 -EA Stop
$WebSite = $WebSites[0];
# WebSite Client Access Information
[string]$WebSiteAccessExecute = $WebSite.AccessExecute
[string]$WebSiteAccessFlags = $WebSite.AccessFlags
[string]$WebSiteAccessNoPhysicalDir = $WebSite.AccessNoPhysicalDir
[string]$WebSiteAccessNoRemoteExecute = $WebSite.AccessNoRemoteExecute
[string]$WebSiteAccessNoRemoteRead = $WebSite.AccessNoRemoteRead
[string]$WebSiteAccessNoRemoteScript = $WebSite.AccessNoRemoteScript
[string]$WebSiteAccessNoRemoteWrite = $WebSite.AccessNoRemoteWrite
[string]$WebSiteAccessRead = $WebSite.AccessRead
[string]$WebSiteAccessScript = $WebSite.AccessScript
[string]$WebSiteAccessSource = $WebSite.AccessSource
[string]$WebSiteAccessSSL = $WebSite.AccessSSL
[string]$WebSiteAccessSSL128 = $WebSite.AccessSSL128
[string]$WebSiteAccessSSLFlags = $WebSite.AccessSSLFlags
[string]$WebSiteAccessSSLMapCert = $WebSite.AccessSSLMapCert
[string]$WebSiteAccessSSLNegotiateCert = $WebSite.AccessSSLNegotiateCert
[string]$WebSiteAccessSSLRequireCert = $WebSite.AccessSSLRequireCert
[string]$WebSiteAccessWrite = $WebSite.AccessWrite
You can find more properties in my blog.