question

MFEndPoint-9691 avatar image
0 Votes"
MFEndPoint-9691 asked saldana-msft edited

SCCM Changing Windows 10 WallPaper

I need to change windows 10 wallpaper. Not during OSD.
I am placing a correct image into %WINDIR%\web\wallpaper\windows\
However %AppData%\Roaming\Microsoft\Windows\Themes\CachedFiles\ still has a default Microsoft image.
Rebooting the OS does not refresh that image.
I can run shell:::{ED834ED6-4B5A-4BFE-8F11-A626DCB6A921}\pageWallpaper manually to refresh the wallpaper and that works,
But if i run it from a script or try to run it from Active setup i am either not getting a wallpaper refresh or an error from the ActiveSetup:![109889-error001.png][1]

What am i missing and how can i force wallpaper refresh with SCCM?
Thank you
[1]: /answers/storage/attachments/109889-error001.png

windows-10-generalmem-cm-generalwindows-10-setupmem-cm-osdmem-cm-application
error001.png (9.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GarthJones-MVP avatar image
0 Votes"
GarthJones-MVP answered

How exactly are you updating the wallpaper? program, application, CI, etc.???
How exactly have you deploy it, via user or local system account.
With your Active setup what does the SMI log say?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MFEndPoint-9691 avatar image
0 Votes"
MFEndPoint-9691 answered

I am running as a part of the task sequence "Not OSD" just an OS configuration.
I have run cmd to copy the correct image to C:\Windows\Web\Wallpaper\Windows\
and than tried to run as cmd 'cmd /c start /min "explorer shell:::{ED834ED6-4B5A-4BFE-8F11-A626DCB6A921}\pageWallpaper"'
That did not work.
Created a batch file and tried to run it as a package. Did not work.

Created active setup to run that command when user logs in, and thats when i am getting that error.

I can run that command from run or cmd "tested as a system" with no issues.109965-error001.png



error001.png (9.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GarthJones-MVP avatar image
0 Votes"
GarthJones-MVP answered

So if you are running this as a TS, it will run as the local system account. Have you tested your script to run as the local system account?
This is how to access the local system account https://www.enhansoft.com/how-to-access-the-local-system-account/



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MFEndPoint-9691 avatar image
0 Votes"
MFEndPoint-9691 answered

Yss, i have been testing only with cmd and/or powershell as a system.
Works manually as a system but not when executed with the TS.
I am not sure what could be the difference?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GarthJones-MVP avatar image
0 Votes"
GarthJones-MVP answered

Did you test it as a X86 local system account? as I covered within the blog?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MFEndPoint-9691 avatar image
0 Votes"
MFEndPoint-9691 answered

I am testing with the script i found on Jose Espitia site.
https://www.joseespitia.com/2017/09/15/set-wallpaper-powershell-function/

Running that script as a package or as a package from the task sequence does not refresh desktop wallpaper, but works as expected when running manually as a system:

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MFEndPoint-9691 avatar image
0 Votes"
MFEndPoint-9691 answered

110299-error002.png



error002.png (138.6 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GarthJones-MVP avatar image
0 Votes"
GarthJones-MVP answered

Again, did you run it as a 32bit process on the computer ass local system?
https://www.enhansoft.com/how-to-access-the-local-system-account/

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MFEndPoint-9691 avatar image
0 Votes"
MFEndPoint-9691 answered

I also tested in x86 CMD manually and worked as expected110348-error003.png



error003.png (41.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.