Browse Source

merge lockscreen scripts

pull/9/merge
Alex Hirsch 9 years ago
parent
commit
bf93d258ac
  1. 10
      scripts/disable-logon-background.ps1
  2. 10
      scripts/disable-new-lockscreen.ps1
  3. 17
      scripts/optimize-lockscreen.ps1

10
scripts/disable-logon-background.ps1

@ -1,10 +0,0 @@
# Description:
# This script will disable the 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
"@)

10
scripts/disable-new-lockscreen.ps1

@ -1,10 +0,0 @@
# Description:
# This script disables the new lock screen via Group Policies.
Import-Module -DisableNameChecking $PSScriptRoot\..\lib\reg-helper.psm1
echo "Disabling new lock screen"
Import-Registry(@"
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization]
"NoLockScreen"=dword:00000001
"@)

17
scripts/optimize-lockscreen.ps1

@ -0,0 +1,17 @@
# 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
"@)
Loading…
Cancel
Save