Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Enumerating IIS:\SSLBindings gives failure on one machine, works on another

$
0
0

Hi,

I'm struggling to find the correct forum for this question, but as I'm working on a PowerShell script this looks like the one that's closest to my issue.

 

The following issue occurs. I have a script, in which I enumerate SSL certificates in IIS and if the certificate I'm looking for exists, I bind it to an IIS website. To do this I use the webadministration module.

On the machine where it fails I get the following result when I do a "dir IIS:\SSLBindings":

Get-ChildItem : Failed to enumerate SSL bindings, error code 234
At line:1 char:4+ dir <<<<  IIS:SslBindings+ CategoryInfo : NotSpecified: <:> [Get-ChildItem], ProviderException+ FullyQualifiedErrorId : Microsoft.Iis.PowerShell.Framework.ProviderException,Microsoft.PowerShell.Commands.GetChildItemCommand

And on the machine that is properly working, I receive the following response:

IP Address       Port Store            Sites
----------       ---- -----            -----
0.0.0.0          32844 SharePoint       SharePoint Web Services
0.0.0.0          8172  MY

I have tried this on multiple different machines and the results don't seem to be consistent. I can bind the SSL certificate to an IIS site when using inetmgr without any problems. This is a self-signed SAN certificate, created using SelfSSL7.

Does anybody have some pointers about how I would be able to resolve this for all machines?

Thanks for your help.

Kind regards,

Stefan Hazenbroek


MCSE:S,MCITP:EA,MCITP:EMA2007,MCITP:EMA2010



Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>