Skip to content

Commit

Permalink
Add functions to enable or disable News and Interests on Taskbar
Browse files Browse the repository at this point in the history
  • Loading branch information
yuusakuri committed Jul 30, 2021
1 parent ff68077 commit 169da9b
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
13 changes: 13 additions & 0 deletions functions/registry/Disable-NewsAndInterestsOnTaskbar.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function Disable-WUNewsAndInterestsOnTaskbar {
[CmdletBinding(SupportsShouldProcess)]
param (
)

Set-StrictMode -Version 'Latest'
$registryHash = Get-WURegistryHash
if (!$registryHash) {
return
}

Set-WURegistryFromHash -RegistryHash $registryHash -DataKey $MyInvocation.MyCommand.Verb
}
13 changes: 13 additions & 0 deletions functions/registry/Enable-NewsAndInterestsOnTaskbar.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function Enable-WUNewsAndInterestsOnTaskbar {
[CmdletBinding(SupportsShouldProcess)]
param (
)

Set-StrictMode -Version 'Latest'
$registryHash = Get-WURegistryHash
if (!$registryHash) {
return
}

Set-WURegistryFromHash -RegistryHash $registryHash -DataKey $MyInvocation.MyCommand.Verb
}
13 changes: 13 additions & 0 deletions resources/registry/NewsAndInterestsOnTaskbar.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@{
NewsAndInterestsOnTaskbar = @{
LocalMachine = @{
Keyname = 'HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Feeds'
Valuename = 'EnableFeeds'
Type = 'REG_DWORD'
Data = @{
Enable = 1
Disable = 0
}
}
}
}

0 comments on commit 169da9b

Please sign in to comment.