-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDisable-rss.ps1
More file actions
28 lines (22 loc) · 851 Bytes
/
Disable-rss.ps1
File metadata and controls
28 lines (22 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Script to Disable RSS feeds in Outlook via Registry Key
#
# Jonathan Bullock
# 2024 - 04 - 08
# Definitions
$registryPath = "HKCU:\software\policies\microsoft\office\*\outlook\options\rss"
$registryName = "Disable"
$registryValue = 1
# Check if the RSS registry key exists and remove it
if (Test-Path $registryPath) {
Remove-Item -Path $registryPath -Recurse
Write-Host "RSS Feeds have been disabled in Outlook."
} else {
Write-Host "RSS Feeds are not enabled or already disabled in Outlook."
}
# Check if the path exists, if not create it
if (-not (Test-Path $registryPath)) {
New-Item -Path $registryPath -Force | Out-Null
}
# Set the value to disable RSS Feeds
Set-ItemProperty -Path $registryPath -Name $registryName -Value $registryValue
Write-Host "RSS Feeds have been successfully disabled in Outlook through registry."