Thursday, September 19, 2013

Change windows Login Screen using Powershell.


Hi,
We all love customization and personalize our laptop setting. Like we all (majority of) love to change our wallpapers.
windows-7-logon-background
I have few scripts, which rebooted a laptop twice thrice, on those scripts i use Logon screen as a information and “how to’s” board.
backgroundDefault
and if you want some fun , you can also change the login screen with your choice of picture.
How to change login screen?
  1. Make sure the picture which you want to set as Login Screen is less then 254KB
  2. Rename the picture to “backgroundDefault.jpg
  3. A2
Run Powershell as Administrator.

Now, we need to set “OemBackgroud” value to 1 in the registry

Set-ItemProperty -Path hklm:\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background 
 -Name OEMBackground -Value 1
 
A1

Now copy the “backgroundDefault.jpg”  to the "C:\Windows\System32\oobe\info\backgrounds\" folder.

Copy-Item -Force "c:\myscripts\backgroundDefault.jpg" 
 "C:\Windows\System32\oobe\info\backgrounds\" -Verbose

A3

Now, to test, lock you screen (Windows Key + L ) and see if logon screen is changed or not.

But mine is changed :)

IMG-20130919-00495




How to set login screen to default again?

To set logon screen to default again, set the OEM key to “0” again.

Set-ItemProperty -Path 
hklm:\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background  
-Name OEMBackground -Value 0

I hope that you find is useful.

Aman Dhally

clip_image001 clip_image002 clip_image003 clip_image005clip_image007

3 comments:

  1. Very useful, thank you :-)

    ReplyDelete
  2. Thanks!
    I write a function named Change-LogonUIBackground against your post.
    http://www.pstips.net/change-windows-login-screen-using-powershell.html

    ReplyDelete
    Replies
    1. Hi
      Nice Mosser,

      I just created a GUI app for the same :) http://newdelhipowershellusergroup.blogspot.in/2013/09/powershell-tools-windows-login-screen.html

      thanks

      Delete

Note: Only a member of this blog may post a comment.