Skip to content

Aman Dhally's Blog

the life of an IT administrator..

  • Home
  • 100Days Of Self Improvement
  • PowerShell Blog
  • Poetry
  • About Me
  • General
PowerShell

Change windows Login Screen using Powershell.

23 September, 201323 September, 2013 Aman Dhally

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
Automation Automation Using Powershell. Beginners copy-item Powershell PowerShell Techniques Powershell Tips and Tricks set-itemproperty Windows 7 Windows Login Screen

Post navigation

Previous Post PowerShell Techniques : Alias v/s Full Cmdlets usage.
Next Post Powershell Tools : Windows Login Screen Changer GUI application.

Disclaimer!

Please note all of these views and opinions are my own

Subscribe Podcast

Click Here to subscribe to the PodCast
Proudly powered by WordPress · Theme: Button by Automattic.