Batch job settings lockscreen picture causes black screen at logon

Robert Vilhelmsen 1 Reputation point
2021-09-25T01:32:25.45+00:00

Hi,

I have GPO (user configuration) where a script is executed at logon to set the lockscreen picture on our Windows 10 PRO machines. It works - the lockscreen picture is set at the 1. logon. But at the following logons when the script is executed, i just get a black screen with a white mouse cursor.

Removing the script solves the issue, but any idea why the below script causes a black screen after the 1. logon?

@Echo off

REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP

REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP /v LockScreenImagePath /t REG_SZ /d "c:\windows\web\Screen\pic1.png" /f

REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP /v LockScreenImageUrl /t REG_SZ /d "c:\windows\web\Screen\pic1.png" /f

REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP /v LockScreenImageStatus /t REG_DWORD /d 1 /f

Regards
Robert

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,735 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,341 Reputation points
    2021-09-28T08:07:38.437+00:00

    Hello anonymous userVilhelmsen-9075

    We have a topic with a problem similar to his, I recommend that you consult it to better understand how to solve it, go to it on the link below:

    https://social.technet.microsoft.com/Forums/en-us/1664b0ab-f1d8-4e60-8337-13f079a33752/windows-10-1803-custom-loginlock-screen-image-is-not-applied-until-a-user-logs-in?forum=win10itprosetup


    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments