Browse Source

Minor changes

pull/686/head
Dmitry Nefedov 4 months ago
parent
commit
d411eeee46
  1. 3
      src/Sophia_Script_for_Windows_10/Module/Private/InitialActions.ps1
  2. 19
      src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
  3. 3
      src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Private/InitialActions.ps1
  4. 1
      src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1
  5. 3
      src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Private/InitialActions.ps1
  6. 1
      src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1
  7. 3
      src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Private/InitialActions.ps1
  8. 19
      src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1
  9. 3
      src/Sophia_Script_for_Windows_11/Module/Private/InitialActions.ps1
  10. 13
      src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
  11. 2
      src/Sophia_Script_for_Windows_11/Sophia.ps1
  12. 3
      src/Sophia_Script_for_Windows_11_ARM/Module/Private/InitialActions.ps1
  13. 13
      src/Sophia_Script_for_Windows_11_ARM/Module/Sophia.psm1
  14. 3
      src/Sophia_Script_for_Windows_11_ARM_PowerShell_7/Module/Private/InitialActions.ps1
  15. 13
      src/Sophia_Script_for_Windows_11_ARM_PowerShell_7/Module/Sophia.psm1
  16. 3
      src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Private/InitialActions.ps1
  17. 13
      src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1
  18. 3
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Private/InitialActions.ps1
  19. 13
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

3
src/Sophia_Script_for_Windows_10/Module/Private/InitialActions.ps1

@ -1160,8 +1160,7 @@ public extern static string BrandingFormatString(string sFormat);
{
# Get the name of a preset (e.g Sophia.ps1) regardless it was named
Write-Information -MessageData "" -InformationAction Continue
$CurrentScriptName = Split-Path -Path $MyInvocation.PSCommandPath -Leaf
[string]$PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {$_.File}).File | Where-Object -FilterScript {$_ -match $CurrentScriptName}
[string]$PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {($_.Text -match "InitialActions") -and ($_.Text -notmatch "Get-PSCallStack")}).File
Write-Verbose -Message ($Localization.CustomizationWarning -f $PresetName) -Verbose
do

19
src/Sophia_Script_for_Windows_10/Module/Sophia.psm1

@ -333,7 +333,6 @@ function FeedbackFrequency
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name DoNotShowFeedbackNotifications -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name DoNotShowFeedbackNotifications -Type DELETE
Remove-ItemProperty -Path HKCU:\Software\Microsoft\Siuf\Rules -Name PeriodInNanoSeconds -Force -ErrorAction Ignore
switch ($PSCmdlet.ParameterSetName)
@ -888,19 +887,19 @@ function WindowsWelcomeExperience
<#
.SYNOPSIS
Getting tips, tricks, and suggestions as you use Windows
Getting tip and suggestions when I use Windows
.PARAMETER Enable
Get tips, tricks, and suggestions as you use Windows
Get tip and suggestions when using Windows
.PARAMETER Disable
Do not get tips, tricks, and suggestions as you use Windows
Do not get tip and suggestions when I use Windows
.EXAMPLE
WindowsTips -Enable
WindowsTips -Disable
.EXAMPLE
WindowsTips -Disable
WindowsTips -Enable
.NOTES
Current user
@ -930,14 +929,14 @@ function WindowsTips
switch ($PSCmdlet.ParameterSetName)
{
"Enable"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338389Enabled -PropertyType DWord -Value 1 -Force
}
"Disable"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338389Enabled -PropertyType DWord -Value 0 -Force
}
"Enable"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338389Enabled -PropertyType DWord -Value 1 -Force
}
}
}

3
src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Private/InitialActions.ps1

@ -1112,8 +1112,7 @@ public extern static string BrandingFormatString(string sFormat);
{
# Get the name of a preset (e.g Sophia.ps1) regardless it was named
Write-Information -MessageData "" -InformationAction Continue
$CurrentScriptName = Split-Path -Path $MyInvocation.PSCommandPath -Leaf
[string]$PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {$_.File}).File | Where-Object -FilterScript {$_ -match $CurrentScriptName}
[string]$PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {($_.Text -match "InitialActions") -and ($_.Text -notmatch "Get-PSCallStack")}).File
Write-Verbose -Message ($Localization.CustomizationWarning -f $PresetName) -Verbose
do

1
src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1

@ -317,7 +317,6 @@ function FeedbackFrequency
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name DoNotShowFeedbackNotifications -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name DoNotShowFeedbackNotifications -Type DELETE
Remove-ItemProperty -Path HKCU:\Software\Microsoft\Siuf\Rules -Name PeriodInNanoSeconds -Force -ErrorAction Ignore
switch ($PSCmdlet.ParameterSetName)

3
src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Private/InitialActions.ps1

@ -1111,8 +1111,7 @@ public extern static string BrandingFormatString(string sFormat);
{
# Get the name of a preset (e.g Sophia.ps1) regardless it was named
Write-Information -MessageData "" -InformationAction Continue
$CurrentScriptName = Split-Path -Path $MyInvocation.PSCommandPath -Leaf
[string]$PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {$_.File}).File | Where-Object -FilterScript {$_ -match $CurrentScriptName}
[string]$PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {($_.Text -match "InitialActions") -and ($_.Text -notmatch "Get-PSCallStack")}).File
Write-Verbose -Message ($Localization.CustomizationWarning -f $PresetName) -Verbose
do

1
src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1

@ -317,7 +317,6 @@ function FeedbackFrequency
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name DoNotShowFeedbackNotifications -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name DoNotShowFeedbackNotifications -Type DELETE
Remove-ItemProperty -Path HKCU:\Software\Microsoft\Siuf\Rules -Name PeriodInNanoSeconds -Force -ErrorAction Ignore
switch ($PSCmdlet.ParameterSetName)

3
src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Private/InitialActions.ps1

@ -1197,8 +1197,7 @@ public extern static string BrandingFormatString(string sFormat);
{
# Get the name of a preset (e.g Sophia.ps1) regardless it was named
Write-Information -MessageData "" -InformationAction Continue
$CurrentScriptName = Split-Path -Path $MyInvocation.PSCommandPath -Leaf
[string]$PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {$_.File}).File | Where-Object -FilterScript {$_ -match $CurrentScriptName}
[string]$PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {($_.Text -match "InitialActions") -and ($_.Text -notmatch "Get-PSCallStack")}).File
Write-Verbose -Message ($Localization.CustomizationWarning -f $PresetName) -Verbose
do

19
src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

@ -331,7 +331,6 @@ function FeedbackFrequency
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name DoNotShowFeedbackNotifications -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name DoNotShowFeedbackNotifications -Type DELETE
Remove-ItemProperty -Path HKCU:\Software\Microsoft\Siuf\Rules -Name PeriodInNanoSeconds -Force -ErrorAction Ignore
switch ($PSCmdlet.ParameterSetName)
@ -886,19 +885,19 @@ function WindowsWelcomeExperience
<#
.SYNOPSIS
Getting tips, tricks, and suggestions as you use Windows
Getting tip and suggestions when I use Windows
.PARAMETER Enable
Get tips, tricks, and suggestions as you use Windows
Get tip and suggestions when using Windows
.PARAMETER Disable
Do not get tips, tricks, and suggestions as you use Windows
Do not get tip and suggestions when I use Windows
.EXAMPLE
WindowsTips -Enable
WindowsTips -Disable
.EXAMPLE
WindowsTips -Disable
WindowsTips -Enable
.NOTES
Current user
@ -928,14 +927,14 @@ function WindowsTips
switch ($PSCmdlet.ParameterSetName)
{
"Enable"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338389Enabled -PropertyType DWord -Value 1 -Force
}
"Disable"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338389Enabled -PropertyType DWord -Value 0 -Force
}
"Enable"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338389Enabled -PropertyType DWord -Value 1 -Force
}
}
}

3
src/Sophia_Script_for_Windows_11/Module/Private/InitialActions.ps1

@ -1133,8 +1133,7 @@ public extern static string BrandingFormatString(string sFormat);
{
# Get the name of a preset (e.g Sophia.ps1) regardless it was named
Write-Information -MessageData "" -InformationAction Continue
$CurrentScriptName = Split-Path -Path $MyInvocation.PSCommandPath -Leaf
[string]$PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {$_.File}).File | Where-Object -FilterScript {$_ -match $CurrentScriptName}
[string]$PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {($_.Text -match "InitialActions") -and ($_.Text -notmatch "Get-PSCallStack")}).File
Write-Verbose -Message ($Localization.CustomizationWarning -f $PresetName) -Verbose
do

13
src/Sophia_Script_for_Windows_11/Module/Sophia.psm1

@ -331,7 +331,6 @@ function FeedbackFrequency
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name DoNotShowFeedbackNotifications -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name DoNotShowFeedbackNotifications -Type DELETE
Remove-ItemProperty -Path HKCU:\Software\Microsoft\Siuf\Rules -Name PeriodInNanoSeconds -Force -ErrorAction Ignore
switch ($PSCmdlet.ParameterSetName)
@ -901,10 +900,10 @@ function WindowsWelcomeExperience
Do not get tip and suggestions when I use Windows
.EXAMPLE
WindowsTips -Enable
WindowsTips -Disable
.EXAMPLE
WindowsTips -Disable
WindowsTips -Enable
.NOTES
Current user
@ -934,14 +933,14 @@ function WindowsTips
switch ($PSCmdlet.ParameterSetName)
{
"Enable"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338389Enabled -PropertyType DWord -Value 1 -Force
}
"Disable"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338389Enabled -PropertyType DWord -Value 0 -Force
}
"Enable"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338389Enabled -PropertyType DWord -Value 1 -Force
}
}
}

2
src/Sophia_Script_for_Windows_11/Sophia.ps1

@ -85,7 +85,7 @@ if ($Global:Failed -eq 1)
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Preset configuration starts here #
# Настройка пресет-файла начинается здесь #
# Настройка пресет-файла начинается здесь # ###
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#region Protection

3
src/Sophia_Script_for_Windows_11_ARM/Module/Private/InitialActions.ps1

@ -1133,8 +1133,7 @@ public extern static string BrandingFormatString(string sFormat);
{
# Get the name of a preset (e.g Sophia.ps1) regardless it was named
Write-Information -MessageData "" -InformationAction Continue
$CurrentScriptName = Split-Path -Path $MyInvocation.PSCommandPath -Leaf
[string]$PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {$_.File}).File | Where-Object -FilterScript {$_ -match $CurrentScriptName}
[string]$PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {($_.Text -match "InitialActions") -and ($_.Text -notmatch "Get-PSCallStack")}).File
Write-Verbose -Message ($Localization.CustomizationWarning -f $PresetName) -Verbose
do

13
src/Sophia_Script_for_Windows_11_ARM/Module/Sophia.psm1

@ -334,7 +334,6 @@ function FeedbackFrequency
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name DoNotShowFeedbackNotifications -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name DoNotShowFeedbackNotifications -Type DELETE
Remove-ItemProperty -Path HKCU:\Software\Microsoft\Siuf\Rules -Name PeriodInNanoSeconds -Force -ErrorAction Ignore
switch ($PSCmdlet.ParameterSetName)
@ -904,10 +903,10 @@ function WindowsWelcomeExperience
Do not get tip and suggestions when I use Windows
.EXAMPLE
WindowsTips -Enable
WindowsTips -Disable
.EXAMPLE
WindowsTips -Disable
WindowsTips -Enable
.NOTES
Current user
@ -937,14 +936,14 @@ function WindowsTips
switch ($PSCmdlet.ParameterSetName)
{
"Enable"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338389Enabled -PropertyType DWord -Value 1 -Force
}
"Disable"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338389Enabled -PropertyType DWord -Value 0 -Force
}
"Enable"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338389Enabled -PropertyType DWord -Value 1 -Force
}
}
}

3
src/Sophia_Script_for_Windows_11_ARM_PowerShell_7/Module/Private/InitialActions.ps1

@ -1170,8 +1170,7 @@ public extern static string BrandingFormatString(string sFormat);
{
# Get the name of a preset (e.g Sophia.ps1) regardless it was named
Write-Information -MessageData "" -InformationAction Continue
$CurrentScriptName = Split-Path -Path $MyInvocation.PSCommandPath -Leaf
[string]$PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {$_.File}).File | Where-Object -FilterScript {$_ -match $CurrentScriptName}
[string]$PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {($_.Text -match "InitialActions") -and ($_.Text -notmatch "Get-PSCallStack")}).File
Write-Verbose -Message ($Localization.CustomizationWarning -f $PresetName) -Verbose
do

13
src/Sophia_Script_for_Windows_11_ARM_PowerShell_7/Module/Sophia.psm1

@ -334,7 +334,6 @@ function FeedbackFrequency
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name DoNotShowFeedbackNotifications -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name DoNotShowFeedbackNotifications -Type DELETE
Remove-ItemProperty -Path HKCU:\Software\Microsoft\Siuf\Rules -Name PeriodInNanoSeconds -Force -ErrorAction Ignore
switch ($PSCmdlet.ParameterSetName)
@ -904,10 +903,10 @@ function WindowsWelcomeExperience
Do not get tip and suggestions when I use Windows
.EXAMPLE
WindowsTips -Enable
WindowsTips -Disable
.EXAMPLE
WindowsTips -Disable
WindowsTips -Enable
.NOTES
Current user
@ -937,14 +936,14 @@ function WindowsTips
switch ($PSCmdlet.ParameterSetName)
{
"Enable"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338389Enabled -PropertyType DWord -Value 1 -Force
}
"Disable"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338389Enabled -PropertyType DWord -Value 0 -Force
}
"Enable"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338389Enabled -PropertyType DWord -Value 1 -Force
}
}
}

3
src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Private/InitialActions.ps1

@ -1112,8 +1112,7 @@ public extern static string BrandingFormatString(string sFormat);
{
# Get the name of a preset (e.g Sophia.ps1) regardless it was named
Write-Information -MessageData "" -InformationAction Continue
$CurrentScriptName = Split-Path -Path $MyInvocation.PSCommandPath -Leaf
[string]$PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {$_.File}).File | Where-Object -FilterScript {$_ -match $CurrentScriptName}
[string]$PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {($_.Text -match "InitialActions") -and ($_.Text -notmatch "Get-PSCallStack")}).File
Write-Verbose -Message ($Localization.CustomizationWarning -f $PresetName) -Verbose
do

13
src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1

@ -321,7 +321,6 @@ function FeedbackFrequency
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name DoNotShowFeedbackNotifications -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name DoNotShowFeedbackNotifications -Type DELETE
Remove-ItemProperty -Path HKCU:\Software\Microsoft\Siuf\Rules -Name PeriodInNanoSeconds -Force -ErrorAction Ignore
switch ($PSCmdlet.ParameterSetName)
@ -891,10 +890,10 @@ function WindowsWelcomeExperience
Do not get tip and suggestions when I use Windows
.EXAMPLE
WindowsTips -Enable
WindowsTips -Disable
.EXAMPLE
WindowsTips -Disable
WindowsTips -Enable
.NOTES
Current user
@ -924,14 +923,14 @@ function WindowsTips
switch ($PSCmdlet.ParameterSetName)
{
"Enable"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338389Enabled -PropertyType DWord -Value 1 -Force
}
"Disable"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338389Enabled -PropertyType DWord -Value 0 -Force
}
"Enable"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338389Enabled -PropertyType DWord -Value 1 -Force
}
}
}

3
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Private/InitialActions.ps1

@ -1170,8 +1170,7 @@ public extern static string BrandingFormatString(string sFormat);
{
# Get the name of a preset (e.g Sophia.ps1) regardless it was named
Write-Information -MessageData "" -InformationAction Continue
$CurrentScriptName = Split-Path -Path $MyInvocation.PSCommandPath -Leaf
[string]$PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {$_.File}).File | Where-Object -FilterScript {$_ -match $CurrentScriptName}
[string]$PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {($_.Text -match "InitialActions") -and ($_.Text -notmatch "Get-PSCallStack")}).File
Write-Verbose -Message ($Localization.CustomizationWarning -f $PresetName) -Verbose
do

13
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

@ -331,7 +331,6 @@ function FeedbackFrequency
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name DoNotShowFeedbackNotifications -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name DoNotShowFeedbackNotifications -Type DELETE
Remove-ItemProperty -Path HKCU:\Software\Microsoft\Siuf\Rules -Name PeriodInNanoSeconds -Force -ErrorAction Ignore
switch ($PSCmdlet.ParameterSetName)
@ -901,10 +900,10 @@ function WindowsWelcomeExperience
Do not get tip and suggestions when I use Windows
.EXAMPLE
WindowsTips -Enable
WindowsTips -Disable
.EXAMPLE
WindowsTips -Disable
WindowsTips -Enable
.NOTES
Current user
@ -934,14 +933,14 @@ function WindowsTips
switch ($PSCmdlet.ParameterSetName)
{
"Enable"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338389Enabled -PropertyType DWord -Value 1 -Force
}
"Disable"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338389Enabled -PropertyType DWord -Value 0 -Force
}
"Enable"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager -Name SubscribedContent-338389Enabled -PropertyType DWord -Value 1 -Force
}
}
}

Loading…
Cancel
Save