This post will interest businesses, organizations, and enterprises with Volume License (VL) subscriptions, who are migrating from Windows 7 Pro or Enterprise to Windows 10, and have purchased Windows 7 Extended Security Updates (ESUs). In this post, we will illustrate how to install and activate Windows 7 Extended Security Update (ESU) keys on multiple devices that are part of an on-premises Active Directory domain using a Multiple Activation Key (MAK).
Install & activate Windows 7 ESU keys on multiple devices
To begin, you’ll need to download the Activate-ProductOnline.ps1 script and save it to a local folder. This script will install and activate the ESU product key.
The Activate-ProductOnline.ps1 script requires that Windows 7 devices have Internet access for online activation. If you need to install ESU on isolated Windows 7 devices or have restricted internet access, the ActivationWs project supports activation of Windows 7 devices by using a proxy to communicate with the Microsoft BatchActivation Service. The ActivationWS project includes a PowerShell script (Activate-Product.ps1) compatible with the steps described in this post.
The basic logic for the script is as follows:
- Accept and validate required ProductKey and optional LogFile parameters.
- Exit if the product key is already installed and activated.
- Install the product key.
- Activate the product key.
- Produce a log file with default location: $env:TEMP\Activate-ProductOnline.log.
Next, you should ensure that all of the prerequisites are installed. The ESU key for Windows 7 will not install properly if the prerequisites are missing. If the Software Licensing Service reports error 0xC004F050 when installing the ESU key, this indicates that either the prerequisites have not been installed, or the updates are being applied to the wrong operating system. The best way to resolve this is to ensure that you are applying the ESU key to Windows 7 Pro, Enterprise, or Ultimate and reinstall each of the prerequisites individually.
After you have completed the pre-installation checks outlined above, you can now proceed to create a WMI-filtered Group Policy Object that will run the Activate-ProductOnline.ps1 on the Windows 7 domain-joined devices.
Here’s how, says Microsoft:
To create a new GPO, and link it to the directory location holding the Windows 7 devices in scope for the ESUs, do the following:
- On a domain controller or workstation with Group Policy Management tools installed, Select Start and type Group Policy and select Group Policy Management.
- Expand the forest and domain nodes to expose the appropriate OU or Container that contains Windows 7 devices.
- Right-click the Organizational Unit (OU) or Container.
- Select Create a GPO in the domain.
- Name it Windows7_ESU.
- Click OK.
- Right-click the new GPO and select Edit to open the Group Policy Management Editor.
- Under Computer Configuration, expand Policies, then expand Windows Settings. Select Scripts (Startup/Shutdown).
- Double-click Startup in the right side of the pane and click the PowerShell Scripts tab.
- Select Add to open the Add a Script dialog, and then select Browse.
The Browse button opens a Windows Explorer window Startup script folder for the Group Policy Object you created.
- Drag the Activate-ProductOnline.ps1 script into the Startup folder.
- Select the Activate-ProductOnline.ps1 you just copied and select Open.
- Ensure Activate-ProductOnline.ps1 is specified in the Script Name field and enter the parameter -ProductKey followed by your ESU MAK key.
Select OK to close the Add A Script Dialog, select OK to close Startup Properties, then close Group Policy Management Editor.
In the Group Policy Management Console, right-click the WMI Filters node and select New to open the New WMI filter dialog.
- Give the new WMI Filter a meaningful name and select Add to open the WMI Query dialog.
- Use the WMI Query Select Version from Win32_OperatingSystem WHERE Version like “6.1%” AND ProductType=”1″.
- Select OK to close the WMI Query dialog and then select Save.
- In the Group Policy Management Console, select the new GPO. In the WMI Filtering section, choose the WMI Filter you just created.
Now that you have completed the steps outlined above, you’ll need to verify that the ESU PKID is installed and activated.
To verify that the process has been successful, do the following:
On a Windows 7 computer in the scope of the GPO, run the command below from an elevated command prompt.
Now verify the software licensing information for the Windows 7 Client-ESU add-on and ensure that the License Status is Licensed as shown in the image below:
Note: It may take up to 45 minutes for the new policy to synchronize to all domain controllers in your site (longer for remote domain controllers, depending on the synchronization schedule). Once completed, reboot your Windows 7 devices, which will force a Group Policy update and allow the Startup scripts to run. The script will create a log file that can be examined for additional verification. By default, the log file will be named Activate-ProductOnline.txt and located in the system TEMP directory C:\Windows\Temp.
If you receive an activation error, refer to our Activation troubleshooting guide.
Finally, if you cannot install the ESU key after verifying the operating system and verifying prerequisites, contact Microsoft Support.
That’s it! I hope IT admins will find this post useful.