mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-05-10 08:12:08 +00:00
Ignore Recall disablement when disabled, and more
- If Recall is disabled, don't disable it again. This may be a waste of time - Disable certain notification sources that I think are quite annoying, like those from Suggested or the Startup App Notification
This commit is contained in:
parent
96c1d77d30
commit
3bb3d127a6
@ -54,7 +54,7 @@ function Microwin-NewFirstRun {
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if ((Get-WindowsOptionalFeature -Online | Where-Object { $_.FeatureName -like "Recall" }).Count -gt 0)
|
if ((Get-WindowsOptionalFeature -Online | Where-Object { $_.State -eq 'Enabled' -and $_.FeatureName -like "Recall" }).Count -gt 0)
|
||||||
{
|
{
|
||||||
Disable-WindowsOptionalFeature -Online -FeatureName "Recall" -Remove
|
Disable-WindowsOptionalFeature -Online -FeatureName "Recall" -Remove
|
||||||
}
|
}
|
||||||
@ -79,6 +79,13 @@ function Microwin-NewFirstRun {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.Suggested" /f
|
||||||
|
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.Suggested" /v Enabled /t REG_DWORD /d 0 /f
|
||||||
|
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.StartupApp" /f
|
||||||
|
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.StartupApp" /v Enabled /t REG_DWORD /d 0 /f
|
||||||
|
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.SkyDrive.Desktop" /f
|
||||||
|
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.SkyDrive.Desktop" /v Enabled /t REG_DWORD /d 0 /f
|
||||||
|
|
||||||
'@
|
'@
|
||||||
$firstRun | Out-File -FilePath "$env:temp\FirstStartup.ps1" -Force
|
$firstRun | Out-File -FilePath "$env:temp\FirstStartup.ps1" -Force
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user