-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need some help!! #2
Comments
Hello Sir, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First of all, applauds for the excellent work!
I want the set a wallpaper and using raw github url to fetch the wallpaper. Currently I am using this but it does work with Windows 10, but fails to set wallpaper on Windows Server 2008 R2. Any suggestions are welcome.
function RemoveWallpaper {
$code = @'
using System.Runtime.InteropServices;
namespace Win32{
}
'@
Invoke-WebRequest -useb https://raw.githubusercontent.com/.....x.png -Outfile $env:temp\PSWall.jpg
$MyWallpaper="$env:temp\PSWall.jpg"
add-type $code
[Win32.Wallpaper]::SetWallpaper($MyWallpaper)
}
The text was updated successfully, but these errors were encountered: