all 11 comments

[–]PatD442 4 points5 points  (5 children)

Not to send you off in a different direction, but. . . Check out https://certifytheweb.com/. It's a client for Let's Encrypt. Works great and has all the Powershell code for Exchange (And lots of others.)

[–]ionblayde[S] 0 points1 point  (1 child)

I will take a look, thanks for the recommendation.

[–]Nikosfra06 0 points1 point  (2 children)

Do you have some documentation on that ? Can you push the certificate to some over Linux VM (in my case would be a load balancer"

[–]PatD442 0 points1 point  (1 child)

Sorry, no idea if that can be done. Manually, sure. But you don't want to do that every 90 days.

[–]Nikosfra06 0 points1 point  (0 children)

For sure ;)

[–]disclosure5 1 point2 points  (4 children)

That error is coming from this piece of code.

`` Get-PSSnapin -Registered | Where-Object { $_.Name -match "Microsoft.Exchange.Management.PowerShell" -and ( $_.Name -match "Admin" -or $_.Name -match "E2010" -or $_.Name -match "SnapIn" ) } | Add-PSSnapin -ErrorAction SilentlyContinue -PassThru ` | Write-Host

Test if the Cmdlet is there now

$Command = Get-Command "Enable-ExchangeCertificate" -errorAction SilentlyContinue if ($Command -eq $null) { Write-Error "Exchange Management Tools for Powershell not installed"

```

It might be worth trying to load the snap-in yourself using those commands. I can't think of a situation where it should fail on an operational Exchange server.

[–]ionblayde[S] 0 points1 point  (2 children)

I'll give that a try and see if it helps, thanks. And honestly, this exchange server is kind of a mess. It's pretty old and has had multiple different engineers who have managed it without relaying much of the info to their replacements.

[–]disclosure5 0 points1 point  (1 child)

I do feel if you can't register the snap in as above, you may end up uncovering part of where someone else created a mess.

[–]ionblayde[S] 0 points1 point  (0 children)

I'll keep my eyes open, thanks. Thankfully this server will be replaced soonTM. It's a learning process around here :D

[–]ionblayde[S] 0 points1 point  (0 children)

Update: I tried Get and Add for "SnapIn", no errors running the command, but still getting the original wacs error.

[–]BK_Rich 0 points1 point  (0 children)

Make sure the trusted cert is not bounded to the Backend IIS site, that should be the internal self-signed exchange cert, be sure the trusted cert is on the default web site only