-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get-AcmeRegistration throws terminating error and does not respect ErrorAction #234
Comments
PS C:\Users\bcadroot> if (-not (Get-AcmeRegistration -ErrorAction SilentlyContinue) ) {New-ACMERegistration -Contacts "mailto:$email" -AcceptTos}
|
I think the error might be your Contacts Parameter, for my uses i never use the "mailto:" prefix to my email address. I know on the Wiki it shows it this way, but i just do plain and simple [email protected] and it works just fine. Try it out, and see if it works for you. |
Just a "me too": PS C:\Users\dave\Desktop> $acmeReg = Get-ACMERegistration -ErrorAction SilentlyContinue
|
Looks like @VitaliHarbiankou is taking care of this request in #261. |
I believe it should return null but at the very least it must respect ErrorAction SilentlyContinue. The fact that I must put a try/catch around it determine if i need to do New-AcmeRegistration is wrong
The text was updated successfully, but these errors were encountered: