Before adding a Windows node to your UCP cluster, you must set up the Docker daemon on that Windows node to listen to a specific port, and you must open up certain firewall settings. You can do this by running a Powershell script that is included with UCP.
It is recommended that you run this script on every Windows node before installing UCP.
Run the script in a Powershell console:
docker run --rm docker/ucp-agent-win:2.2.0 windows-script | powershell -noprofile -noninteractive -command 'Invoke-Expression -Command $input'
If you'd just like to see what the script does before running it, you can run:
docker run --rm docker/ucp-agent-win:2.2.0 windows-script