This Windows PowerShell script will remove the file and key of registry.
For the version of Microsoft Windows Genuine Advantage (WGA) Notifications that is distributed during the pilot program, this version is included in the pre-release version that accompanies the Microsoft Software License Terms. To safely and easily uninstall the pilot version, you must install the general release version of WGA Notifications. If you do not install this version, you can use the script in this article to disable or uninstall the pilot version.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery