2

I'm search way to change lockscreen image on Windows 10 Pro amd64 workstations in domain.

I found than group policy option work only on Enterprise version at least in 1607 and 1703 releases.

Registry changes takes no effect.

Changes from PowerShell not posible bacause of SetImageFileAsync method requires async file operation which not implemented in PowerShell.

In github repo there solution with precompiled dll but this dll can't load on my OS with error:

Add-Type : Could not load file or assembly 'file:///C:\Users\kardash.CORP\Downloads\PoshWinRT.dll' or one of its depend encies. Operation is not supported. (Exception from HRESULT: 0x80131515) At line:1 char:1 + Add-Type -Path PoshWinRT.dll + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Add-Type], FileLoadException + FullyQualifiedErrorId : System.IO.FileLoadException,Microsoft.PowerShell.Commands.AddTypeCommand

and I have no Visual Studio to compile this dll myself from sources.

Other solution has two problems:

  1. It will not work if user already change image (it changes default images)
  2. It changes file acl on system files.

Is there any othe way to do it? May be any commend-line utility?

5
  • 1
    You can force a specific default lock screen image through a gpo: Computer Configuration > Administrative Templates > Control Panel > Personalization > Force a specific default lock screen image. It looks like it should be possible, even though you're not using an Enterprise version of Windows 10. – Bungicasse Sep 29 '17 at 11:39
  • @Bungicasse You should post this as an answer. – root Oct 19 '17 at 14:57
  • There's not much point in answering it if it is not the correct answer.. @root – Bungicasse Oct 19 '17 at 20:08
  • @Bungicasse In what way does your comment not answer the question? – root Oct 19 '17 at 20:10
  • @root it's do not work in Windows 10 Pro. Tested. – Slipeer Oct 20 '17 at 7:27
0

I also went through all these paths trying to change LockScreen with Powershell script. Ran into the same obstacles as you described. Finally solved with Registry change by creating new key in path as described in blogpost: https://abcdeployment.wordpress.com/2017/04/20/how-to-set-custom-backgrounds-for-desktop-and-lockscreen-in-windows-10-creators-update-v1703-with-powershell/

Create new Registry key at: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curre‌​ntVersion\Personaliz‌​ationCSP. Then for this key create strings LockScreenImagePath, LockScreenImageUrl with data set to absolute path of your image. Then set a DWORD, name to LockScreenImageStatus, its value to 1.

Blogger's example PS Script on Onedrive: https://1drv.ms/t/s!AljjQEIEs7p2jWGOBHlScNgjX4-F Verified that it worked on my Windows 10 Pro version 1709

3
  • 1
    You link does not work. Which is the reason all relevant information should be contained within the body of your answer. – Ramhound Dec 5 '17 at 20:56
  • 1
    Use powershell to create new Registry key at: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP. Then for this key create LockScreenImagePath,LockScreenImageUrl with data set to absolute path of your image. Then set a DWORD, name to LockScreenImageStatus value to 1. – Jomar Sevilla Dec 5 '17 at 21:00
  • 1
    Why did you submit that as a comment? All relevant information should be contained within the body of the answer not submitted as a comment. – Ramhound Dec 5 '17 at 21:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.