Exception setting ApplicationPoolPassword
-
16-10-2019 - |
문제
Following the example in this blog post, I am trying to create a new Web Application with PowerShell.
However, when I try the line:
$WebAppBuilder.ApplicationPoolPassword = "password"
I receive the following error:
Exception setting "ApplicationPoolPassword": "Cannot convert the "password" value of type "System.String" to type "System.Security.SecureString"."
How might I go about fixing this?
해결책
You will have to ConvertTo-SecureString as documented here.
Or you could use Get-Credential to retrieve password, e.g. something like this:
$credential = Get-Credential
$credential.GetNetworkCredential().Password
제휴하지 않습니다 sharepoint.stackexchange