-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functions to enable or disable News and Interests on Taskbar
- Loading branch information
yuusakuri
committed
Jul 30, 2021
1 parent
ff68077
commit 169da9b
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} | ||
} |