Exit code | Meaning
|
---|
0 | Success
|
1 | Unexpected error occurred while executing the script
|
2 | Error when logging to console. $logMode = 0.
|
3 | Error when logging to console and file. $logMode = 1.
|
4 | Error when logging to file. $logMode = 2.
|
5 | Error when logging to console and file. $logMode = unknown.
|
6 | The commercialID parameter is set to unknown. Modify the script.
|
7 | Function -CheckCommercialId: Unexpected failure.
|
8 | Failure to create registry key path: HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection.
|
9 | Error when writing CommercialId to registry.
|
10 | Error when writing CommercialDataOptIn to registry.
|
11 | Function -SetupCommercialId: Unexpected failure.
|
12 | Can’t connect to Microsoft – Vortex. Check your network/proxy settings.
|
13 | Can’t connect to Microsoft – setting. Check your network/proxy settings.
|
14 | Can’t connect to Microsoft – compatexchange. Check your network/proxy settings.
|
15 | Error connecting to Microsoft. Check your network/proxy settings.
|
16 | Machine requires reboot.
|
17 | Function -CheckRebootRequired: Unexpected failure.
|
18 | Outdated compatibility update KB package. Update via Windows Update/WSUS.
|
19 | This machine doesn’t have the proper KBs installed. Make sure you have recent compatibility update KB downloaded.
|
20 | Error writing RequestAllAppraiserVersions registry key.
|
21 | Function – SetRequestAllAppraiserVersions: Unexpected failure.
|
22 | RunAppraiser failed with unexpected exception.
|
23 | Error finding system variable %WINDIR%.
|
24 | SetIEDataOptIn failed when writing IEDataOptIn to registry.
|
25 | SetIEDataOptIn failed with unexpected exception.
|
26 | The operating system is LTSB SKU. The script does not support LTSB SKUs.
|
27 | The operating system is Server SKU. The script does not support Server SKUs.
|