
2 changed files with 9 additions and 17 deletions
@ -1,14 +1,10 @@ |
|||||
# Description: |
# Description: |
||||
# This script will disable the login screen background image |
# This script will disable the login screen background image |
||||
|
|
||||
echo "Disabling login screen background" |
Import-Module $PSScriptRoot\..\lib\reg-helper.psm1 |
||||
$reg = @" |
|
||||
Windows Registry Editor Version 5.00 |
|
||||
|
|
||||
|
echo "Disabling login screen background image" |
||||
|
Import-Registry(@" |
||||
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System] |
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System] |
||||
"DisableLogonBackgroundImage"=dword:00000001 |
"DisableLogonBackgroundImage"=dword:00000001 |
||||
"@ |
"@) |
||||
$regfile = "$env:windir\Temp\registry.reg" |
|
||||
$reg | Out-File $regfile |
|
||||
Start-Process "regedit.exe" -ArgumentList ("/s", "$regfile") -Wait |
|
||||
rm $regfile |
|
||||
|
Loading…
Reference in new issue