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:


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.



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



  1. Jeroen Reply

    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?

    • craig Post authorReply


      Thanks for the kind words. To reset the passwords, browse to:


      and delete the following XML files:


      Once you have done this, run register-ccappliance and you’ll be prompted to re-enter new passwords.

  2. Rob Reply

    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?


    • Craig Post authorReply

      Hey Rob, it can take a little bit of time sometimes for the PSTN site to disappear.

  3. Krishna mishra Reply

    Hi Rob,

    Getting mentioned error while reconfiguring the CCE001 Site.

    Wait-MtMachineOn : Can’t connect to machine 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

    • Craig Chiffers Post authorReply

      Hey Krishna,

      Make sure that the VMs have the management NIC attached to it after reboot. Sometimes it can become disconnected and this causes this issue.

      Also ensure that you’re setting both domain and local admin passwords the same. This is a HUGE bug.

Leave a Reply

Your email address will not be published. Required fields are marked *

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