From a735da54f7143162f9e6cc2203b0cb8a822fbbaf Mon Sep 17 00:00:00 2001 From: tumpio Date: Wed, 12 Aug 2015 11:25:48 +0300 Subject: [PATCH] new script: disable login screen background image --- scripts/disable-logon-background.ps1 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 scripts/disable-logon-background.ps1 diff --git a/scripts/disable-logon-background.ps1 b/scripts/disable-logon-background.ps1 new file mode 100644 index 0000000..21a09be --- /dev/null +++ b/scripts/disable-logon-background.ps1 @@ -0,0 +1,14 @@ +# Description: +# This script will disable the login screen background image + +echo "Disabling login screen background" +$reg = @" +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System] +"DisableLogonBackgroundImage"=dword:00000001 +"@ +$regfile = "$env:windir\Temp\registry.reg" +$reg | Out-File $regfile +Start-Process "regedit.exe" -ArgumentList ("/s", "$regfile") -Wait +rm $regfile