Force change remote user wallpaper with PowerShell

Jackbox

Active Member
Jan 2, 2016
197
96
74
Just swap <Username> to target and maybe the .jpg file fetched!

Code:
cd "C:\Users\<Username>\AppData\Roaming\Microsoft\Windows\Themes"
wget https://www.corlaci.com/wp-content/uploads/IMG_7453.jpg -o Swap
$Acl = Get-Acl .\TranscodedWallpaper
Set-Acl .\Swap $Acl
rm .\TranscodedWallpaper
mv .\Swap .\TranscodedWallpaper
quser

#Now, we will log off the session id
logoff 2

The user must log back in, and now they will be like hmm? Why is my wallpaper now a bird (or something you pick, eww)

If anyone knows a way to force the wallpaper refresh without PsExec, let me know. Please and thank you!
 
Top