CCE: Deployment failure – Connecting to the remote server failed with the following error: Access is denied

During a recent deployment of version 1.4.1 of cloud connector edition, I kept running into the following error message after Step 14 of the deployment process:

Issue

The running command stopped because the preference variable “ErrorActionPreference” or common parameter is set to stop. Connecting to the remote server failed with the following error message: Access is denied.

cce-deployment-failure

Solution

It turns out that Cloud Connector Edition version 1.4.1  contains a bug.

During deployment, you’re asked to enter new passwords for the following within CCE:

  • Local administrator
  • Domain administrator
  • Safe Admin
  • External (publically signed) certificate

Of course, it’s always a good idea to set the local admin, domain admin and safe admin passwords to be different. Unfortunately though, if you set the local and domain administrator passwords to be different during deployment, your deployment will fail.

There’s no mention of this in the official CCE documentation up at TechNet, as it’s a bug. For now, if you’re running version 1.4.1 of CCE, ensure you enter the same password for Local Administrator and Domain Administrator.

Awesome – but what if I’ve already deployed CCE?

If you’re running version 1.3.8, or have already deployed 1.4.1 and have ran into this error, I strongly recommend you remove and re-deploy the environment and set the local and domain admin passwords the same.

To do so, from within powershell, run:

  1. Unregister-CCAppliance
  2. Uninstall-CCAppliance

Once removed, run:

  1. Register-CCAppliance
  2. Install-CCAppliance

Note that you can keep and re-use your 1.3.8 version of the CloudConnector.ini configuration file to install version 1.4.1

I’m having issues uninstalling CCE

If you’re running into issues removing the installed version of CCE – especially after a failed install, do the following to force an uninstall:

  1. Within Powershell, run Switch-CCVersion -force
  2. Then run Unregister-CCAppliance -force
  3. Then run Uninstall-CCAppliance -force

Once removed, you can then reinstall via:

  1. Register-CCAppliance
  2. Install-CCAppliance

 

0 0 votes
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

6 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Jeroen
Jeroen
7 years ago

Nice post Craig, I had the exact same issue, how can I change the passwords? When I re-run “Register-CCAppliance” it doesn’t prompt me for new passwords anymore. Any idea how to do this, so the command re-prompts for the passwords?

Rob
Rob
6 years ago

Hi Craig,

Great post however after running these cmdlets I still see the PSTN site listed in the Skype for Business Online portal. Are you aware of any additional commands needed to remove the instance from the Office 365 portal?

Thanks,
Rob

Krishna mishra
Krishna mishra
5 years ago

Hi Rob,

Getting mentioned error while reconfiguring the CCE001 Site.

Wait-MtMachineOn : Can’t connect to machine 192.168.213.2 after waiting 600 seconds.
At C:\Program Files\WindowsPowerShell\Modules\CloudConnector\Internal\MtVm.ps1:488 char:5
+ Wait-MtMachineOn -MachineIP $MachineIP -Credential $Credential -WaitOffFirst …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Wait-MtMachineOn