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