Merge pull request #22 from Conder000/hidenetwork

Added HideNetworkFromLockScreen function
This commit is contained in:
Disassembler0
2017-09-09 08:06:30 +02:00
committed by GitHub
5 changed files with 20 additions and 0 deletions

View File

@@ -74,6 +74,7 @@ $tweaks = @(
"HidePicturesFromThisPC", # "ShowPicturesInThisPC",
"HideVideosFromThisPC", # "ShowVideosInThisPC",
"SetVisualFXPerformance", # "SetVisualFXAppearance",
"HideNetworkFromLockScreen" # "ShowNetworkOnLockScreen",
# "AddENKeyboard", # "RemoveENKeyboard",
# "EnableNumlock", # "DisableNumlock",
@@ -1078,6 +1079,21 @@ Function SetVisualFXAppearance {
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\DWM" -Name "EnableAeroPeek" -Type DWord -Value 1
}
# Hide network options from Lock Screen
Function HideNetworkFromLockScreen {
Write-Host "Hiding network options from Lock Screen..."
If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System")) {
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Force | Out-Null
}
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "DontDisplayNetworkSelectionUI" -Type DWord -Value 1
}
# Show network options on lock screen
Function ShowNetworkOnLockScreen {
Write-Host "Showing network options on Lock Screen..."
Remove-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "DontDisplayNetworkSelectionUI" -ErrorAction SilentlyContinue
}
# Add secondary en-US keyboard
Function AddENKeyboard {
Write-Host "Adding secondary en-US keyboard..."

View File

@@ -64,6 +64,7 @@ HideMusicFromThisPC
HidePicturesFromThisPC
HideVideosFromThisPC
SetVisualFXPerformance
HideNetworkFromLockScreen
AddENKeyboard
EnableNumlock

View File

@@ -64,6 +64,7 @@ ShowMusicInThisPC
ShowPicturesInThisPC
ShowVideosInThisPC
SetVisualFXAppearance
ShowNetworkOnLockScreen
RemoveENKeyboard
DisableNumlock

View File

@@ -64,6 +64,7 @@ HideMusicFromThisPC
HidePicturesFromThisPC
HideVideosFromThisPC
SetVisualFXPerformance
HideNetworkFromLockScreen
AddENKeyboard
EnableNumlock

View File

@@ -64,6 +64,7 @@ ShowMusicInThisPC
ShowPicturesInThisPC
ShowVideosInThisPC
SetVisualFXAppearance
ShowNetworkOnLockScreen
RemoveENKeyboard
DisableNumlock