Upgrade a Windows agent using a script

You can use a script to upgrade individual Windows agents.

For Windows, this method is riskier than when you Upgrade agents using the puppet_agent module, because you must manually perform actions and verifications that the puppet_agent module handles automatically.
The <PRIMARY_HOSTNAME> portion of the installer script—as provided in the following example—refers to the FQDN of the primary server. The FQDN must be fully resolvable by the machine on which you're installing or upgrading the agent.
  1. Stop the Puppet service and the PXP agent service.
  2. On the Windows agent, open PowerShell as an administrator and run the install script:
    [Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}; `
    $webClient = New-Object System.Net.WebClient; `
    $webClient.DownloadFile('https://<PRIMARY_HOSTNAME>:8140/packages/current/install.ps1', 'install.ps1'); `
    .\install.ps1
  3. Run puppet agent -t and verify that Puppet runs succeed.
  4. Restart the Puppet service and the PXP agent service.