Skip to content
KBHost
Menu
216.73.216.147
KBHost
FileHost
Home
/
Knowledgebase
/
Office 365 & Azure
/
Remediation
/
Snippets
/
Windows
/
Hide (and Uninstall) New Outlook Toggle
Hide (and Uninstall) New Outlook Toggle
0
0
Detection:
# Detection script for HideNewOutlookToggle registry key $regPath = "HKCU:\Software\Microsoft\Office\16.0\Outlook\Options\General" $regName = "HideNewOutlookToggle" $regValue = 1 try { if ((Test-Path -Path $regPath) -and ((Get-ItemProperty -Path $regPath -Name $regName -ErrorAction SilentlyContinue).$regName -eq $regValue)) { Write-Host "Compliant: HideNewOutlookToggle registry key found with correct value." exit 0 } else { Write-Host "Non-compliant: HideNewOutlookToggle registry key not found or has incorrect value." exit 1 } } catch { Write-Host "Error checking registry key: $_" exit 1 }
Remediation:
# Remediation script for HideNewOutlookToggle registry key $regPath = "HKCU:\Software\Microsoft\Office\16.0\Outlook\Options\General" $regName = "HideNewOutlookToggle" $regValue = 1 try { New-ItemProperty -Path $regPath -Name $regName -Value $regValue -PropertyType DWORD -Force | Out-Null $outlookApp = Get-AppxPackage -Name *Outlook* | Where-Object { $_.Name -like "*Microsoft.Outlook*" } Remove-AppxPackage -Package $outlookApp.PackageFullName Write-Host "Successfully Removed Outlook (new) and set HideNewOutlookToggle registry key to value 1." exit 0 } catch { Write-Host "Failed to set registry key: $_" exit 1 }
No sleep -
00:00
Password Generator
Most viewed
Connect to Office 365 with PowerShell
Silent update Microsoft Remote Desktop
Add Microsoft Photos app to Server 2019
Enable NFS client in Windows 10
Clear Outlook filter for all folders
Asus ZenWiFi LED color status
Ventoy Windows 11 To Go
Find and delete all snapshots
Most recent
Install or Update reMarkable
TrueNAS Clear failed jobs history
TrueNAS SSH Hetzner Storage Box Rsync
Print Screen from PowerShell
Create local user during Windows Setup
Force Microsoft 365 installation
Enable MailTips in Microsoft 365
Get Home Assistant Logs
We use cookies to ensure the best experience on our website. If you continue to use this site, we assume that you are happy with this.
Ok