Install windows agent
First we need to download the msi package.
Run the installer and when asked specify the centosa.home as master.
Now you can issue the following command.
puppet agent --waitforcert 60 --test
Then sign the cert on the master.
puppetserver ca sign --all
If everything goes well the new host should be visible on the foreman.