Browse Source

Update Sophia.psm1

pull/217/head
iamteerawut 4 years ago
parent
commit
b0bbcde17d
  1. 4
      Sophia/PowerShell 5.1/Module/Sophia.psm1
  2. 6
      Sophia/PowerShell 7/Module/Sophia.psm1

4
Sophia/PowerShell 5.1/Module/Sophia.psm1

@ -2356,7 +2356,7 @@ function ActionCenter {
switch ($PSCmdlet.ParameterSetName) {
"Hide" {
New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name DisableNotificationCenter Dword -Value 1 -Force
New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name DisableNotificationCenter DWord -Value 1 -Force
}
"Show" {
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name DisableNotificationCenter -Force -ErrorAction Ignore
@ -2402,7 +2402,7 @@ function WindowsSecurity {
switch ($PSCmdlet.ParameterSetName) {
"Hide" {
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Systray' -Name HideSystray Dword -Value 1 -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Systray' -Name HideSystray DWord -Value 1 -Force
}
"Show" {

6
Sophia/PowerShell 7/Module/Sophia.psm1

@ -2359,7 +2359,7 @@ function ActionCenter {
switch ($PSCmdlet.ParameterSetName) {
"Hide" {
New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name DisableNotificationCenter Dword -Value 1 -Force
New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name DisableNotificationCenter DWord -Value 1 -Force
}
"Show" {
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name DisableNotificationCenter -Force -ErrorAction Ignore
@ -2405,11 +2405,11 @@ function WindowsSecurity {
switch ($PSCmdlet.ParameterSetName) {
"Hide" {
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Systray' -Name HideSystray Dword -Value 1 -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Systray' -Name HideSystray DWord -Value 1 -Force
}
"Show" {
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Systray' -Name HideSystray Dword -Value 0 -Force
Remove-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Systray' -Name HideSystray Dword -Value 0 -Force
}
}
}

Loading…
Cancel
Save