Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Getting web server information through WMI

$
0
0

Specifically, what I want to do is determine the value of SSLFlags, especially SSLRequireCert.

 

On servers which have an applicationhost.config file at \\server\admin$\system32\inetsrv\config, I can access it using something like:

 

[xml]$config=gc  \\server\admin$\system32\inetsrv\config\applicationhost.config

 

$config.configuration."system.webserver".security.access

 

or

 

$config.configuration.location[1]."system.webserver".security.access

 

I haven't figured out how to change the value in brackets to identify each site.

 

When I try to access information via WMI, it will work if I'm logged into the server, but not remotely.  When trying to do it remotely, I get an access denied.  If PSRemoting is the only answer, I may be out of luck because of network policies here.

 

Thanks,

 

J


Viewing all articles
Browse latest Browse all 6937

Trending Articles