[SOLVED] Wallpaper

Come here to share your tips and tricks for using Samba4
Locked
Maelvon
Messages: 15
Registration: February 7, 2018 - 10:14

July 16, 2018 - 1:31 PM

Hello,

is there a way to set a single wallpaper for all users (Windows 7 and Windows 10)? What configuration would be required?
Or do you have a tutorial lying around?

Thanks in advance.

Maelvon
Maelvon
Messages: 15
Registration: February 7, 2018 - 10:14

September 11, 2018 - 5:55 PM

Found a lead (untested) here:

https://www.reddit.com/r/sysadmin/comme... pany_wide/

Which points to a script:

Code: Select all

# Sets Lockscreen for Windows 10 Pro #
 
takeown /f C:\Windows\Web
takeown /f C:\Windows\Web\*.* /R
takeown /f C:\ProgramData\Microsoft\Windows\SystemData /R /D Y
icacls C:\ProgramData\Microsoft\Windows\SystemData\*.* /reset /T /C
icacls C:\Windows\Web\*.* /reset /T /C
copy \\Server\everyone\LockScreen\img100.jpg C:\Windows\Web\Screen\img100.jpg /y
copy \\Server\everyone\LockScreen\img100.jpg C:\Windows\Web\Screen\img101.jpg /y
copy \\Server\everyone\LockScreen\img100.jpg C:\Windows\Web\Screen\img102.jpg /y
copy \\Server\everyone\LockScreen\img100.jpg C:\Windows\Web\Screen\img103.jpg /y
copy \\Server\everyone\LockScreen\img100.jpg C:\Windows\Web\Screen\img104.jpg /y
copy \\Server\everyone\LockScreen\img100.jpg C:\Windows\Web\Screen\img105.jpg /y
copy \\Server\everyone\LockScreen\img101.png C:\Windows\Web\Screen\img100.png /y
copy \\Server\everyone\LockScreen\img101.png C:\Windows\Web\Screen\img101.png /y
copy \\Server\everyone\LockScreen\img101.png C:\Windows\Web\Screen\img102.png /y
copy \\Server\everyone\LockScreen\img101.png C:\Windows\Web\Screen\img103.png /y
copy \\Server\everyone\LockScreen\img101.png C:\Windows\Web\Screen\img104.png /y
copy \\Server\everyone\LockScreen\img101.png C:\Windows\Web\Screen\img105.png /y
RD C:\ProgramData\Microsoft\Windows\SystemData /S /Q
icacls c:\windows\web\*.* /setowner "NT Service\TrustedInstaller" /T /C"
That seems like a reasonable stock option! Otherwise, it doesn't seem possible in GPO.

Not tested yet, but I'm answering myself.

Maelvon
User avatar
agauvrit
WAPT Expert
Messages: 238
Registration: Nov 17, 2016 - 10:25
Location: Nantes
Contact :

September 11, 2018 - 6:50 PM

Hello, here's a suggestion:

Computer Configuration > Administrative Templates > Control Panel > Personalization > Force a default lock screen image.

https://docs.microsoft.com/fr-fr/window ... -spotlight
Maelvon
Messages: 15
Registration: February 7, 2018 - 10:14

September 27, 2018 - 2:06 PM

Thanks for the tip.

The parameter is indicated as:
Note: This setting only applies to Enterprise, Education, and Server SKUs.
I have the impression that this does not work with Samba4, or am I mistaken?

Maelvon
User avatar
dcardon
WAPT Expert
Messages: 1930
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

October 2, 2018 - 8:02 PM

Hello Maelvon,
Maelvon wrote: September 27, 2018 - 2:06 PM Thanks for the tip.

The parameter is indicated as:
Note: This setting only applies to Enterprise, Education, and Server SKUs.
I have the impression that this does not work with Samba4, or am I mistaken?
The choice between Samba-AD and MS-AD has no impact here. The GPO depends on the Windows client version (PRO or Enterprise), not the AD server.

The script you provided should do the job, although it could be simplified and improved with a good WAPT package

Sincerely,
Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Maelvon
Messages: 15
Registration: February 7, 2018 - 10:14

October 8, 2018 - 10:34

Thanks Denis.

Okay, the recommendation for the PRO or Enterprise version applies to the client computer. Well, since they're Windows 10 Pro machines, it doesn't work. I'll have to test the script then. And we should also switch to WAPT :.)

Maelvon
Locked