New file server, new UNC paths: rescuing GPO software deployment

The old file server has been replaced – and suddenly Group Policy software installations fail. Where the path to the MSI file is stored, what your options are and how the AAS Generator shortens the switch.

Illustration of migration and rollout

Many companies still deploy software the classic way via Group Policy: MSI packages sit on a share such as \\fs01\software and are assigned or published to computers or users. This works quietly for years – until the file server is replaced. The data is copied quickly, the new share is called \\fs02\software, the old server is switched off. And then new computers report that the software cannot be installed.

Where the path is stored

When you add a package, the Group Policy editor asks for the path to the MSI file; Microsoft explicitly recommends the full UNC path rather than a local or mapped drive. That path is then fixed:

  • In the policy's package object in Active Directory. The msiFileList attribute contains the UNC path of the MSI file.
  • In the advertisement script (.aas): each package has an application advertisement script stored in the policy's folder in SYSVOL. The package object points to it.
  • On the clients: Windows Installer remembers the source a package was installed from in a source list and looks there whenever a repair or an install-on-demand needs files.

What happens after the move

  • New computers and newly targeted users can no longer find the MSI file, and the installation fails.
  • Repairs and installs on demand look in the old location and come up empty.
  • Group Policy management offers no function to change the path of an existing package. Microsoft describes a new package in a new policy as the standard route – with the consequence that the software is installed again on every computer that already has it.

The usual ways out

  • Keep the old name – with DFS Namespaces. A DFS namespace separates the path clients use from the actual server. After the fact, a stand-alone namespace with "root consolidation" can even take over the old server name. This requires a dedicated namespace server (not a domain controller), registry settings and a DNS alias, and is a small project of its own.
  • The old name as an alias. A plain DNS CNAME pointing to the new server is often not enough for SMB shares, among other reasons because the service principal name (SPN) for the alias is missing. Microsoft instead recommends adding the old name as an additional computer name with netdom computername /add. Prerequisite: the old server is permanently out of service.
  • Re-create the packages. Clean, but with side effects: the software is reinstalled everywhere, and when you remove the old package, the option you choose decides whether the software stays on the computers or is uninstalled. You need a maintenance window for this.
  • "Redeploy application" reinstalls an application everywhere it is already installed. This helps with changed packages, but it does not change the stored source path.
  • Change the path manually. Microsoft describes switching msiFileList in the package object to the new path with ADSI Edit. With many packages this is tedious and error-prone, and the AAS file stays unchanged.

The PriCoSoft AAS Generator

We developed the AAS Generator for exactly this situation. Instead of re-creating packages, it switches over the existing ones:

  • select a Group Policy and list all MSI packages deployed through it, with source and AAS file,
  • switch the MSI or MST path in the policy to the new installation source,
  • regenerate the AAS files,
  • optionally relocate the AAS files to another path.

This way, package object and advertisement script match the new source again without creating new packages. The tool is available for download on GitHub. Important: the new share must contain the same MSI and MST files and be readable for the clients. The source lists on computers that already have the software are a separate matter – after the switch, check that repairs work.

The steps in short

  1. Inventory: record all policies with software installation and their source paths, and back up the policies.
  2. Create the new share with identical files and check the permissions.
  3. Switch the paths and regenerate the AAS files – with the AAS Generator or by hand.
  4. Test a new installation and a repair on a test computer, and only then switch off the old server.
  5. For the future: provide installation sources via a DFS namespace – Microsoft recommends this too. At the next server change, only the target has to change.

We are happy to take care of the inventory and the switch-over of your software deployment.

More articles

Running a program as a Windows service: the options compared

A business application should run on the server without anyone logged on and survive every reboot. sc.exe, the old srvany, Task Scheduler or a service wrapper – what works, where the limits are and why windows suddenly become invisible.

Windows event logs: the events you should monitor

Failures and attacks often announce themselves early in your servers' event logs – but hardly anyone looks at them every day. Which event IDs really matter and how to keep an eye on them.

View all articles