Debloat-Windows-10/scripts/optimize-lockscreen.ps1
2015-08-16 19:48:17 +02:00

18 lines
510 B
PowerShell

# Description:
# This script disables the new lock screen and login screen background
# image.
Import-Module -DisableNameChecking $PSScriptRoot\..\lib\reg-helper.psm1
echo "Disabling login screen background image"
Import-Registry(@"
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System]
"DisableLogonBackgroundImage"=dword:00000001
"@)
echo "Disabling new lock screen"
Import-Registry(@"
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization]
"NoLockScreen"=dword:00000001
"@)