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.
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:
- Unregister-CCAppliance
- Uninstall-CCAppliance
Once removed, run:
- Register-CCAppliance
- 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:
- Within Powershell, run Switch-CCVersion -force
- Then run Unregister-CCAppliance -force
- Then run Uninstall-CCAppliance -force
Once removed, you can then reinstall via:
- Register-CCAppliance
- Install-CCAppliance
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?
Jereon,
Thanks for the kind words. To reset the passwords, browse to:
c:programdatacloudconnector
and delete the following XML files:
credentials..CCEADMIN.xml
credentials..Cceservice.xml
Once you have done this, run register-ccappliance and you’ll be prompted to re-enter new passwords.
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
Hey Rob, it can take a little bit of time sometimes for the PSTN site to disappear.
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
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.