2022-07-05 11:06:23 +00:00
|
|
|
Function Set-WallPaper($Value){
|
2022-07-06 12:32:34 +00:00
|
|
|
Invoke-WebRequest "https://motd.ping-mee.de/wallpaper.png" -OutFile "$($value)wallpaper.png"
|
|
|
|
Set-ItemProperty -path 'HKCU:\Control Panel\Desktop\' -name wallpaper -value "$($value)wallpaper.png"
|
2022-07-05 11:06:23 +00:00
|
|
|
rundll32.exe user32.dll, UpdatePerUserSystemParameters
|
|
|
|
}
|
|
|
|
|
2022-07-06 12:32:34 +00:00
|
|
|
Set-WallPaper -value "C:\temp\"
|