diff --git a/windows/deployment/upgrade/upgrade-readiness-deployment-script.md b/windows/deployment/upgrade/upgrade-readiness-deployment-script.md index e295b3fa32..8fc864f226 100644 --- a/windows/deployment/upgrade/upgrade-readiness-deployment-script.md +++ b/windows/deployment/upgrade/upgrade-readiness-deployment-script.md @@ -6,7 +6,7 @@ ms.mktglfcycl: deploy ms.sitesec: library ms.pagetype: deploy author: jaimeo -ms.date: 10/29/2018 +ms.date: 12/10/2018 --- # Upgrade Readiness deployment script @@ -83,232 +83,71 @@ To run the Upgrade Readiness deployment script: The deployment script displays the following exit codes to let you know if it was successful, or if an error was encountered. -
Exit code and meaning | -Suggested fix | -
0 - Success | -N/A | -
1 - Unexpected error occurred while executing the script. | -The files in the deployment script are likely corrupted. Download the [latest script](https://go.microsoft.com/fwlink/?LinkID=822966) from the download center and try again. | -
2 - Error when logging to console. $logMode = 0. (console only) |
- Try changing the $logMode value to **1** and try again. $logMode value 1 logs to both console and file. |
-
3 - Error when logging to console and file. $logMode = 1. | -Verify that you have set the logPath parameter in RunConfig.bat, and that the configuration script has access to connect and write to this location. | -
4 - Error when logging to file. $logMode = 2. | -Verify that you have set the logPath parameter in RunConfig.bat, and that the configuration script has access to connect and write to this location. | -
5 - Error when logging to console and file. $logMode = unknown. | -Verify that you have set the logPath parameter in RunConfig.bat, and that the configuration script has access to connect and write to this location. | -
6 - The commercialID parameter is set to unknown. Modify the runConfig.bat file to set the CommercialID value. |
- The value for parameter in the runconfig.bat file should match the Commercial ID key for your workspace.
- See [Generate your Commercial ID key](https://technet.microsoft.com/itpro/windows/deploy/upgrade-readiness-get-started#generate-your-commercial-id-key) for instructions on generating a Commercial ID key for your workspace. |
-
8 - Failure to create registry key path: **HKLM:\SOFTWARE\Microsoft\Windows -\CurrentVersion\Policies\DataCollection** | -The Commercial Id property is set at the following registry key path: **HKLM:\SOFTWARE\Microsoft\Windows
-\CurrentVersion\Policies\DataCollection**
- Verify that the context under which the script in running has access to the registry key. |
-
9 - The script failed to write Commercial Id to registry.
- Error creating or updating registry key: **CommercialId** at **HKLM:\SOFTWARE\Microsoft\Windows -\CurrentVersion\Policies\DataCollection** - |
- Verify that the context under which the script in running has access to the registry key. | -
10 - Error when writing **CommercialDataOptIn** to the registry at **HKLM:\SOFTWARE\Microsoft\Windows -\CurrentVersion\Policies\DataCollection** | -Verify that the deployment script is running in a context that has access to the registry key. | -
11 - Function **SetupCommercialId** failed with an unexpected exception. | -The **SetupCommercialId** function updates the Commercial Id at the registry key path: **HKLM:\SOFTWARE\Microsoft\Windows
-\CurrentVersion\Policies\DataCollection** Verify that the configuration script has access to this location. |
-
12 - Can’t connect to Microsoft - Vortex. Check your network/proxy settings. | -**Http Get** on the end points did not return a success exit code. - For Windows 10, connectivity is verified by connecting to https://v10.vortex-win.data.microsoft.com/health/keepalive. - For previous operating systems, connectivity is verified by connecting to https://vortex-win.data.microsoft.com/health/keepalive. - If there is an error verifying connectivity, this will prevent the collected data from being sent to Upgrade Readiness. To resolve this issue, verify that the required endpoints are correctly whitelisted. For more information, see [Enrolling devices in Windows Analytics](../update/windows-analytics-get-started.md) - |
13 - Can’t connect to Microsoft - setting. | -An error occurred connecting to https://settings.data.microsoft.com/qos. This error will prevent the collected data from being sent to Upgrade Readiness. To resolve this issue, verify that the required endpoints are correctly whitelisted. For more information, see [Enrolling devices in Windows Analytics](https://technet.microsoft.com/itpro/windows/deploy/upgrade-readiness-get-started#enable-data-sharing). Verify that the required endpoints are whitelisted correctly. See Whitelist select endpoints for more details. -14 | -
14 - Can’t connect to Microsoft - compatexchange. | -An error occurred connecting to [CompatibilityExchangeService.svc](https://compatexchange1.trafficmanager.net/CompatibilityExchangeService.svc). This error will prevent the collected data from being sent to Upgrade Readiness. To resolve this issue, verify that the required endpoints are correctly whitelisted. For more information, see [Enrolling devices in Windows Analytics](../update/windows-analytics-get-started.md). | -
15 - Function CheckVortexConnectivity failed with an unexpected exception. | -This error will prevent the collected data from being sent to Upgrade Readiness. To resolve this issue, verify that the required endpoints are correctly whitelisted. For more information, see [Enrolling devices in Windows Analytics](../update/windows-analytics-get-started.md). Check the logs for the exception message and the HResult. | -
16 - The computer requires a reboot before running the script. | -A reboot is required to complete the installation of the compatibility update and related KBs. Reboot the computer before running the Upgrade Readiness deployment script. | -
17 - Function **CheckRebootRequired** failed with an unexpected exception. | -A reboot is required to complete installation of the compatibility update and related KBs. Check the logs for the exception message and the HResult. | -
18 - Appraiser KBs not installed or **appraiser.dll** not found. | -Either the Appraiser KBs are not installed, or the **appraiser.dll** file was not found. For more information, see appraiser diagnostic data events and fields information in the [Data collection](https://technet.microsoft.com/itpro/windows/deploy/upgrade-readiness-get-started#data-collection-and-privacy) and privacy topic. | -
19 - Function **CheckAppraiserKB**, which checks the compatibility update KBs, failed with unexpected exception. | -Check the logs for the Exception message and HResult. The script will not run further if this error is not fixed. | -
20 - An error occurred when creating or updating the registry key **RequestAllAppraiserVersions** at **HKLM:\SOFTWARE\Microsoft\WindowsNT -\CurrentVersion\AppCompatFlags\Appraiser** | -The registry key is required for data collection to work correctly. Verify that the script is running in a context that has access to the registry key. | -
21 - Function **SetRequestAllAppraiserVersions** failed with an unexpected exception. | -Check the logs for the exception message and HResult. | -
22 - **RunAppraiser** failed with unexpected exception. | -Check the logs for the exception message and HResult. Check the **%windir%\System32** directory for the file **CompatTelRunner.exe**. If the file does not exist, reinstall the required compatibility updates which include this file, and check your organization's Group Policy to verify it does not remove this file. | -
23 - Error finding system variable **%WINDIR%**. | -Verify that this environment variable is configured on the computer. | -
24 - The script failed when writing **IEDataOptIn** to the registry. An error occurred when creating registry key **IEOptInLevel** at **HKLM:\SOFTWARE\Microsoft\Windows -\CurrentVersion\Policies\DataCollection** | -This is a required registry key for IE data collection to work correctly. Verify that the deployment script in running in a context that has access to the registry key. Check the logs for the exception message and HResult. | -
25 - The function **SetIEDataOptIn** failed with unexpected exception. | -Check the logs for the exception message and HResult. | -
27 - The script is not running under **System** account. | -The Upgrade Readiness configuration script must be run as **System**. | -
28 - Could not create log file at the specified **logPath**. | -Make sure the deployment script has access to the location specified in the **logPath** parameter. | -
29 - Connectivity check failed for proxy authentication. | -Instal cumulative updates on the computer and enable the **DisableEnterpriseAuthProxy** authentication proxy setting.
- The **DisableEnterpriseAuthProxy** setting is enabled by default for Windows 7. - For Windows 8.1 computers, set the **DisableEnterpriseAuthProxy** setting to **0** (not disabled). - For more information on authentication proxy support, see [Authentication proxy support added in new version (12.28.16) of the Upgrade Readiness deployment script](https://go.microsoft.com/fwlink/?linkid=838688). |
-
30 - Connectivity check failed. Registry key property **DisableEnterpriseAuthProxy** is not enabled. | -The **DisableEnterpriseAuthProxy** setting is enabled by default for Windows 7.
- For Windows 8.1 computers, set the **DisableEnterpriseAuthProxy** setting to **0** (not disabled). - For more information on authentication proxy support, see [this blog post](https://go.microsoft.com/fwlink/?linkid=838688). |
-
31 - There is more than one instance of the Upgrade Readiness data collector running at the same time on this computer. | -Use the Windows Task Manager to check if **CompatTelRunner.exe** is running, and wait until it has completed to rerun the script. The Upgrade Readiness task is scheduled to run daily at 3 a.m. | -
32 - Appraiser version on the machine is outdated. | -The configuration script detected a version of the compatibility update module that is older than the minimum required to correctly collect the data required by Upgrade Readiness solution. Use the latest version of the [compatibility update](https://docs.microsoft.com/windows/deployment/update/windows-analytics-get-started#deploy-the-compatibility-update-and-related-updates) for Windows 7 SP1/Windows 8.1. | -
33 - **CompatTelRunner.exe** exited with an exit code | -**CompatTelRunner.exe** runs the appraise task on the machine. If it fails, it will provide a specific exit code. The script will return exit code 33 when **CompatTelRunner.exe** itself exits with an exit code. Check the logs for more details. Also see the **Note** following this table for additional steps to follow. | -
34 - Function **CheckProxySettings** failed with an unexpected exception. | -Check the logs for the exception message and HResult.> | -
35 - Function **CheckAuthProxy** failed with an unexpected exception. | -Check the logs for the exception message and HResult. | -
36 - Function **CheckAppraiserEndPointsConnectivity** failed with an unexpected exception. | -Check the logs for the exception message and HResult. | -
37 - **Diagnose_internal.cmd** failed with an unexpected exception. | -Check the logs for the exception message and HResult. | -
38 - Function **Get-SqmID** failed with an unexpected exception. | -Check the logs for the exception message and HResult. | -
39 - For Windows 10: AllowTelemetry property is not set to 1 or higher at registry key path **HKLM:\SOFTWARE\Policies\Microsoft -\Windows\DataCollection** - or **HKLM:\SOFTWARE\Microsoft\Windows -\CurrentVersion\Policies\DataCollection** | -For Windows 10 machines, the **AllowTelemetry** property should be set to 1 or greater to enable data collection. The script will throw an error if this is not true. For more information, see [Configure Windows diagnostic data in your organization](https://docs.microsoft.com/windows/configuration/configure-windows-diagnostic-data-in-your-organization). | -
40 - Function **CheckTelemetryOptIn** failed with an unexpected exception. | -Check the logs for the exception message and HResult. | -
41 - The script failed to impersonate the currently logged on user. | -The script mimics the UTC client to collect upgrade readiness data. When auth proxy is set, the UTC client impersonates the logged on user. The script also tries to mimic this, but the process failed. | -
42 - Function **StartImpersonatingLoggedOnUser** failed with an unexpected exception. | -Check the logs for the exception message and HResult. | -
43 - Function **EndImpersonatingLoggedOnUser** failed with an unexpected exception. | -Check the logs for the exception message and HResult. | -
44 - Diagtrack.dll version is old, so Auth Proxy will not work. | -Update the PC using Windows Update/Windows Server Update Services. | -
45 - Diagrack.dll was not found. | -Update the PC using Windows Update/Windows Server Update Services. | -
48 - **CommercialID** mentioned in RunConfig.bat should be a GUID. | -**CommercialID** is mentioned in RunConfig.bat, but it is not a GUID. Copy the commercialID from your workspace. To find the commercialID, in the OMS portal click **Upgrade Readiness > Settings**. | -
50 - Diagtrack Service is not running. | -Diagtrack Service is required to send data to Microsoft. Enable and run the 'Connected User Experiences and Telemetry' service. | -
51 - RunCensus failed with an unexpected exception. | -RunCensus explitly runs the process used to collect device information. The method failed with an unexpected exception. Check the ExceptionHResult and ExceptionMessage for more details. | -
52 - DeviceCensus.exe not found on a Windows 10 machine. | -On computers running Windows 10, the process devicecensus.exe should be present in the |
-
53 - There is a different CommercialID present at the GPO path: **HKLM:\SOFTWARE\Policies\Microsoft -\Windows\DataCollection**. This will take precedence over the CommercialID provided in the script. | -Provide the correct CommercialID at the GPO location. | -