search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
Posted in Windows Powershell | No Comment | 1,042 views | 27/07/2015 17:36

These are IIS Website Authentication 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
# Get WebSites
$WebSites = Get-CimInstance -Namespace "root\MicrosoftIISv2" -ClassName "IIsWebServerSetting" -OperationTimeoutSec 15 -EA Stop
 
$WebSite = $WebSites[0];
 
# WebSite Authentication Information
[string]$WebSiteAuthAdvNotifyDisable = $WebSite.AuthAdvNotifyDisable
[string]$WebSiteAuthAnonymous = $WebSite.AuthAnonymous
[string]$WebSiteAuthBasic = $WebSite.AuthBasic
[string]$WebSiteAuthChangeDisable = $WebSite.AuthChangeDisable
[string]$WebSiteAuthChangeUnsecure = $WebSite.AuthChangeUnsecure
[string]$WebSiteAuthFlags = $WebSite.AuthFlags
[string]$WebSiteAuthMD5 = $WebSite.AuthMD5
[string]$WebSiteAuthNTLM = $WebSite.AuthNTLM
[string]$WebSiteAuthPassport = $WebSite.AuthPassport
[string]$WebSiteAuthPersistence = $WebSite.AuthPersistence
[string]$WebSiteAuthPersistSingleRequest = $WebSite.AuthPersistSingleRequest

You can find more properties in my blog.


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

You can find more properties in my blog.


Posted in Windows Powershell | No Comment | 2,448 views | 21/03/2015 12:28

These are IIS Website Binding Information properties that you can get using CIM via PowerShell.

1
2
3
4
5
6
7
8
# Get WebSites
$WebSites = Get-CimInstance -Namespace "root\MicrosoftIISv2" -ClassName "IIsWebServerSetting" -OperationTimeoutSec 15 -EA Stop
 
$WebSite = $WebSites[0];
 
# WebSite Default Document Information
[string]$WebSiteEnableDefaultDoc = $WebSite.EnableDefaultDoc
[array]$WebSiteDefaultDocs = $WebSite.DefaultDoc.Split(",")

You can find more properties in my blog.