# Copyright © 2011, Microsoft Corporation. All rights reserved. . ./cl_mutexverifiers.ps1 $MetaDatawuFileLoc = "$env:temp\wuZipFilePaths" $wulogFILE = "WindowsUpdateTroubleShooter" # fix for duplicate rootcauses if($true -eq (ispostbackOnWin8 "wuPack1") ){ return } . ./utils_SetupEnv.ps1 . ./utils_reporting.ps1 . ./cl_windowsversion.ps1 . ./Cl_Service.ps1 . ./cl_windowsupdate.ps1 ./RC_DateTime.ps1 ######################### # Get Windows Product Name and PID ######################### $ProductName = [Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion", "ProductName", "") $ProductID = [Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion", "ProductID", "") Set-DiagPID -ProductName $ProductName -ProductID $ProductID $CurrentVersion = [Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion", "CurrentVersion", "") $lastweek = get-dateLastWeek Set-PSVersionTable #*================================================================================= #global filename needed for mutual exclusion of multiple verifiers #*================================================================================= $allError = @{} $allError = GetAllErrorCodes if($allError.Count -gt 0) { $prob1 = $allError["latest"] CreateUniqueGlobalFileName $wulogFILE ./RC_GenWUError.ps1 $prob1 } ./RC_DataStore.ps1 $allError ./RC_appdata.ps1