added files

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-07-05 13:06:23 +02:00
parent 4a7da40780
commit da391b9728
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
Function Set-WallPaper($Value){
$url = "https://memeoftheday.ping-mee.de/wallpaper.png";
$wc = New-Object System.Net.WebClient
$wc.DownloadFile($url, "C:\temp\wallpaper.png")
Invoke-WebRequest $url -OutFile C:\temp\wallpaper.png
Set-ItemProperty -path 'HKCU:\Control Panel\Desktop\' -name wallpaper -value $value
rundll32.exe user32.dll, UpdatePerUserSystemParameters
}
Set-WallPaper -value "C:\temp\wallpaper.png"

0
server.py 100644
View File