Default Domain Lock Screen in Group Policy Management

cjcuster89 1 Reputation point
2020-08-04T18:31:03.72+00:00

Hi. I'm having an issue with setting a lock screen in my domain. I have created the image and placed it on one of our network shared drives which is \server\folder\folder\image.png (this is an example path, but same formatting.

I have also created and set up the parameters for a new object under Group Policy Objects --> New. Then Policies --> Administrative Templates --> Control Panel --> Personalization (seen below)
15601-capture.png

Now at this part is where I'm a bit confused. I know I have to link the GPO somewhere in the domain, but I'm not sure where to. Should I link it directly to our domain under domain.local (again, example see screenshot). Or should it go under the destinations where to workstations are? I've tried both and did a gpupdate/force on my computer and restarted but the lock screen isn't changing. Does the whole server have to be restarted for it to take effect? I appreciate any help.

15559-capture2.png

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,998 questions
Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,564 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Fan Fan 15,321 Reputation points Microsoft Vendor
    2020-08-05T02:08:48.303+00:00

    Hi,

    Since the group policy is under Computer Configuration, we have to link the GPO to the OUs containing the workstations or the domain level.
    If you link the GPO to the domain level , all the workstations in the domain will apply the policy.
    If you link the GPO to the OU level, only workstations in the OU will apply the policy, workstations not in the OU will not effected by the policy.

    When you edit the GPO and define the path for the image, type the fully qualified path and name of the file that stores the default lock screen and logon image. You can type a local path, such as C:\windows\web\screen\lockscreen.jpg or a UNC path, such as \Server\Share\Corp.jpg.

    Then on the client run cmd as administrator and type command:

    Gpupdate /force

    Gpresult /h report.html confirm if the policy was applied.

    If the policy was applied in the gpresult, then go into the Registry and verified that the String Value is pointing the the correct path where the custom image is located.
    Hive HKEY_LOCAL_MACHINE
    Registry Path Software\Policies\Microsoft\Windows\Personalization
    Value Name LockScreenImage
    Value Type REG_SZ

    Welcome to share here if you have any progress.
    Best Regards,


  2. Fan Fan 15,321 Reputation points Microsoft Vendor
    2020-08-07T06:23:12.597+00:00

    Hi,

    Download the Powershell script, and save it under a location you can find it easily.
    16268-8078.jpg
    You don't need to change anything in the script. When you deploy the Startup script GPO, we just need to put different parameters into it as following (4 types),you can select one as your requirement:
    16305-80711.jpg
    Create a GPO ,Llink it to the OU containing the computers
    Under Computer Configuration -> Policies -> Windows Settings -> Scripts (Startup / Shutdown).Double click it.
    Under the Powershell script click add
    16267-8079.jpg

    Script Name:Set-Screen.ps1
    Script Parameters:(change it to your own lock image and background image path):
    -LockScreenSource "\SERVER-FS01\LockScreen.jpg" -BackgroundSource "\SERVER-FS01\BackgroundScreen.jpg"
    Click Show files, and copy the script you download into this location.
    16160-80710.jpg
    16323-80712.jpg
    Also other steps are needed to be done, you can refer to the following link:
    http://woshub.com/running-powershell-startup-scripts-using-gpo/


  3. Ayodele Olafare 1 Reputation point
    2021-09-16T13:59:44.687+00:00

    Hello Fanfan

    Kindly send me 132745-image.png the set-screen .ps1

    script for logon screen

    ayodele.olafare@harsh.com .com

    0 comments No comments

  4. richardchao 0 Reputation points
    2024-07-02T01:48:29.2166667+00:00

    This powershell has no effect on GPO for windows 10 22H2 Pro and windws11 23H2 Pro螢幕擷取畫面 2024-07-02 095144

    螢幕擷取畫面 2024-07-02 094931

    0 comments No comments