Quantcast
Channel: Configuration & Scripting
Viewing all articles
Browse latest Browse all 780

Powershell Get-WebConfiguration unrecognized attribute enableSsl

$
0
0

Hello,

I'm trying to obtain with the powershell cmdlet Get-WebConfiguration the smtp information of one of my site; I used the cmdlet:

$smtpSettings = Get-WebConfiguration -pspath "iis:\Sites\MIT_Admin" -Filter system.net/mailSettings/smtp/*

and when I use it I obtaint the error:

Get-WebConfiguration : Filename: \\?\C:\inetpub\wwwroot\MIT_Admin\web.config
Line number: 31
Error: Unrecognized attribute 'enableSsl'
At line:1 char:17
+ $smtpSettings = Get-WebConfiguration -pspath "iis:\Sites\MIT_Admin\" -Filter sys ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-WebConfiguration], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.IIs.PowerShell.Provider.GetConfi
gurationCommand

I also tried to load the settings with 'Configuration Editor" but have a similar error.

Could you please help to find a solution.

--

Regards


Viewing all articles
Browse latest Browse all 780

Trending Articles



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