From da391b97281635927add17faaf1c4862db50fc18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 5 Jul 2022 13:06:23 +0200 Subject: [PATCH] added files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- meme-of-the-day-client.ps1 | 10 ++++++++++ server.py | 0 2 files changed, 10 insertions(+) create mode 100644 meme-of-the-day-client.ps1 create mode 100644 server.py diff --git a/meme-of-the-day-client.ps1 b/meme-of-the-day-client.ps1 new file mode 100644 index 0000000..46ac44f --- /dev/null +++ b/meme-of-the-day-client.ps1 @@ -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" \ No newline at end of file diff --git a/server.py b/server.py new file mode 100644 index 0000000..e69de29