|
|
@ -1344,7 +1344,7 @@ function ErrorReporting |
|
|
|
) |
|
|
|
|
|
|
|
# Remove all policies in order to make changes visible in UI only if it's possible |
|
|
|
Remove-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Force -ErrorAction Ignore |
|
|
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Force -ErrorAction Ignore |
|
|
|
Remove-ItemProperty -Path "HKCU:\Software\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Force -ErrorAction Ignore |
|
|
|
Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Type CLEAR |
|
|
|
Set-Policy -Scope User -Path "Software\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Type CLEAR |
|
|
@ -2124,7 +2124,7 @@ function AppsSilentInstalling |
|
|
|
) |
|
|
|
|
|
|
|
# Remove all policies in order to make changes visible in UI only if it's possible |
|
|
|
Remove-ItemProperty -Path HKLM:\Software\Policies\Microsoft\Windows\CloudContent -Name DisableWindowsConsumerFeatures -Force -ErrorAction Ignore |
|
|
|
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent -Name DisableWindowsConsumerFeatures -Force -ErrorAction Ignore |
|
|
|
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\CloudContent -Name DisableWindowsConsumerFeatures -Type CLEAR |
|
|
|
|
|
|
|
switch ($PSCmdlet.ParameterSetName) |
|
|
@ -11279,9 +11279,9 @@ function RestoreUWPApps |
|
|
|
$AppxPackages = @(Get-AppxPackage -AllUsers | Where-Object -FilterScript {$_.PackageUserInformation -match "Staged"} | Where-Object -FilterScript {$_.Name -in $Bundles}) |
|
|
|
|
|
|
|
# The Bundle packages contains no Microsoft Teams |
|
|
|
if (Get-AppxPackage -Name MicrosoftTeams -AllUsers) |
|
|
|
if (Get-AppxPackage -Name MSTeams -AllUsers) |
|
|
|
{ |
|
|
|
$AppxPackages += Get-AppxPackage -Name MicrosoftTeams -AllUsers | Where-Object -FilterScript {$_.PackageUserInformation -match "Staged"} |
|
|
|
$AppxPackages += Get-AppxPackage -Name MSTeams -AllUsers | Where-Object -FilterScript {$_.PackageUserInformation -match "Staged"} |
|
|
|
} |
|
|
|
|
|
|
|
$PackagesIds = [Windows.Management.Deployment.PackageManager, Windows.Web, ContentType = WindowsRuntime]::new().FindPackages() | Select-Object -Property DisplayName -ExpandProperty Id | Select-Object -Property Name, DisplayName |
|
|
@ -11580,7 +11580,7 @@ function TeamsAutostart |
|
|
|
$Enable |
|
|
|
) |
|
|
|
|
|
|
|
if (Get-AppxPackage -Name MicrosoftTeams) |
|
|
|
if (Get-AppxPackage -Name MSTeams) |
|
|
|
{ |
|
|
|
switch ($PSCmdlet.ParameterSetName) |
|
|
|
{ |
|
|
|