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 # This script disables the new lock screen and login screen background
# image. # image.
Import-Module -DisableNameChecking $PSScriptRoot\..\lib\reg-helper.psm1
echo "Disabling login screen background image" echo "Disabling login screen background image"
Import-Registry(@" mkdir -Force "HKLM:\Software\Policies\Microsoft\Windows\System"
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System] sp "HKLM:\Software\Policies\Microsoft\Windows\System" "DisableLogonBackgroundImage" 1
"DisableLogonBackgroundImage"=dword:00000001
"@)
echo "Disabling new lock screen" echo "Disabling new lock screen"
Import-Registry(@" mkdir -Force "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization"
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization] sp "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization" "NoLockScreen" 1
"NoLockScreen"=dword:00000001
"@)

Loading…
Cancel
Save