mirror of
https://github.com/Disassembler0/Win10-Initial-Setup-Script.git
synced 2026-04-23 03:00:50 -04:00
Merge pull request #22 from Conder000/hidenetwork
Added HideNetworkFromLockScreen function
This commit is contained in:
16
Win10.ps1
16
Win10.ps1
@@ -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..."
|
||||
|
||||
@@ -64,6 +64,7 @@ HideMusicFromThisPC
|
||||
HidePicturesFromThisPC
|
||||
HideVideosFromThisPC
|
||||
SetVisualFXPerformance
|
||||
HideNetworkFromLockScreen
|
||||
AddENKeyboard
|
||||
EnableNumlock
|
||||
|
||||
|
||||
@@ -64,6 +64,7 @@ ShowMusicInThisPC
|
||||
ShowPicturesInThisPC
|
||||
ShowVideosInThisPC
|
||||
SetVisualFXAppearance
|
||||
ShowNetworkOnLockScreen
|
||||
RemoveENKeyboard
|
||||
DisableNumlock
|
||||
|
||||
|
||||
@@ -64,6 +64,7 @@ HideMusicFromThisPC
|
||||
HidePicturesFromThisPC
|
||||
HideVideosFromThisPC
|
||||
SetVisualFXPerformance
|
||||
HideNetworkFromLockScreen
|
||||
AddENKeyboard
|
||||
EnableNumlock
|
||||
|
||||
|
||||
@@ -64,6 +64,7 @@ ShowMusicInThisPC
|
||||
ShowPicturesInThisPC
|
||||
ShowVideosInThisPC
|
||||
SetVisualFXAppearance
|
||||
ShowNetworkOnLockScreen
|
||||
RemoveENKeyboard
|
||||
DisableNumlock
|
||||
|
||||
|
||||
Reference in New Issue
Block a user