@@ -5,7 +5,7 @@ See LICENSE in the project root for license information.
55#>
66
77
8- # Version 0.2.8
8+ # Version 0.3.1
99
1010# ####################################
1111
@@ -63,20 +63,20 @@ function get-userstate {
6363# function to perform the upgrading
6464function invoke-remediation {
6565 $folders = Get-ChildItem - Path C:\users - Directory - force - ErrorAction SilentlyContinue | select fullname, name
66- $TeamsReg = " HKCU:\Software\Microsoft\Office\Teams"
67- $TeamRegExist = test-path - path $TeamsReg
66+ # $TeamsReg = "HKCU:\Software\Microsoft\Office\Teams"
67+ # $TeamRegExist = test-path -path $TeamsReg
6868 $RTCCurrent = get-CurrentRTCver
6969 $global :currentversion
7070 $RTCInstalled = get-installedRTCver
7171 try {
72- if ($TeamRegExist -eq $True ) {
73- $PreventInstallStateKey = Get-Item - Path $TeamsReg
74- $preventInstall = $PreventInstallStateKey.GetValue (" PreventInstallationFromMsi" )
75- if ($preventInstall -ne $null ) {
76- update-log - data " Removing PreventInstallationFromMsi reg key" - Class Information - output both
77- Remove-ItemProperty - Path " HKCU:\Software\Microsoft\Office\Teams" - Name " PreventInstallationFromMsi"
78- }
79- }
72+ # if ($TeamRegExist -eq $True) {
73+ # $PreventInstallStateKey = Get-Item -Path $TeamsReg
74+ # $preventInstall = $PreventInstallStateKey.GetValue("PreventInstallationFromMsi")
75+ # if ($preventInstall -ne $null) {
76+ # update-log -data "Removing PreventInstallationFromMsi reg key" -Class Information -output both
77+ # Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Office\Teams" -Name "PreventInstallationFromMsi"
78+ # }
79+ # }
8080
8181 # Create a directory to save download files
8282 $tempCreated = $false
@@ -202,8 +202,7 @@ function invoke-disctimer {
202202# function to query the latest available version number of WebRTC client
203203function get-CurrentRTCver {
204204 $response = (Invoke-WebRequest - Uri " https://aka.ms/msrdcwebrtcsvc/msi" - UseBasicParsing)
205- $response.headers .' Content-Disposition'
206- $versionC = $response.Headers .' Content-Disposition' -replace " .*HostSetup_" , " " -replace " .x64.msi*" , " "
205+ $versionC = $response.BaseResponse.ResponseUri.AbsolutePath -replace " .*HostSetup_" , " " -replace " .x64.msi*" , " "
207206 $string = " The latest available version of the WebRTC client is " + $versionC
208207 update-log - Data $string - Class Information - output both
209208 $global :currentversion = $versionC
0 commit comments