Browse Source

remove reg-import from optimize lockscreen

pull/31/head
Alex Hirsch 9 years ago
parent
commit
40055437d9
  1. 14
      scripts/optimize-lockscreen.ps1

14
scripts/optimize-lockscreen.ps1

@ -2,16 +2,10 @@
# 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
"@)
mkdir -Force "HKLM:\Software\Policies\Microsoft\Windows\System"
sp "HKLM:\Software\Policies\Microsoft\Windows\System" "DisableLogonBackgroundImage" 1
echo "Disabling new lock screen"
Import-Registry(@"
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization]
"NoLockScreen"=dword:00000001
"@)
mkdir -Force "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization"
sp "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization" "NoLockScreen" 1

Loading…
Cancel
Save