# Copyright © 2013, Microsoft Corporation. All rights reserved. # ============================================================= #.... Load Utilities . ./utils_SetupEnv.ps1 #. ./CL_MutexVerifiers.ps1 #CreateUniqueGlobalFileName("VideoDRMTS") Import-LocalizedData -BindingVariable localizationString -FileName CL_LocalizationData function ispostbackOnWin8($packName) { [string] $path1 = (Get-Location -PSProvider FileSystem).ProviderPath [string] $path1 = join-path $path1 "\$packName" if(test-path $path1){ # del $path1 -force # the file is already so this must be detecting additional problem return $true } "once" > $path1 return $false } ############## MAIN ############## ##string showing### #get-diaginput -id "INT_unsigned" -parameter @{'DriverName' = "name" ; 'DriverVersion' = "Version"} #get-diaginput -id "INT_unsigned" -parameter @{'DriverName' = "name" ; 'DriverVersion' = "Version"} ############end##################### <# $ver = [Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion", "CurrentVersion", "") if(($ver -lt 6.2)) { get-diaginput -id "INT_OSVersion_NotSupported" $Strings_TS_Main.ID_UNSUPPORTED_OS | ConvertTo-Xml |update-diagreport -id "TS-Main" -name "Troubleshooter Result" return } if($ver -ge 6.2) #win 8, 8.1 { if(ispostbackOnWin8 "VideoDRM") { return } } #> # Determine the version of OS. Block the pack from running on Windows older than Win8 #==================================================================================== # Operating system Version Number # --------------------------------------------- # Windows 10 10.0 # Windows 8.1 6.3 # Windows Server 2012 R2 6.3 # Windows 8 6.2 # Windows Server 2012 6.2 # Windows 7 6.1 # Windows Server 2008 R2 6.1 # Windows Server 2008 6.0 # Windows Vista 6.0 # Windows Server 2003 R2 5.2 # Windows Server 2003 5.2 # Windows XP 64-Bit Edition 5.2 # Windows XP 5.1 # Windows 2000 5.0 $temp = (Get-WmiObject -Class Win32_OperatingSystem).Version.Split(".") $OSVersion = ($temp[0] + "." + $temp[1]) if([Float]$OSVersion -lt [Float](6.2)) { get-diaginput -id "INT_OSVersion_NotSupported" $localizationString.ID_UNSUPPORTED_OS | ConvertTo-Xml |update-diagreport -id "TS-Main" -name "Troubleshooter Result" return } if([Float]$OSVersion -ge [Float](6.2)) { if(ispostbackOnWin8 "VideoDRM") { return } } .\RC_viddrv_unsigned.ps1 .\RC_viddrv_msvideo.ps1 .\RC_aud_reg_settings.ps1