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.
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:
Is there any othe way to do it? May be any commend-line utility?
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\CurrentVersion\PersonalizationCSP. 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
User contributions licensed under CC BY-SA 3.0