Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to change the desktop wallpaper on a bunch of users desktop. I dont have AD so I can't use a Global Policy. I found a script that works locally. However, I dont know how to make this run remotely. I plan on running the script from my computer and having it apply on the remote desktop computers I have in a list.

set-itemproperty -path "HKCU:Control Panel\Desktop" -name WallPaper -value c:\wallpaper\wallpaper.jpg

How can I get this this script to run on remote computers?

share|improve this question
Google for "psexec". Once you've found that the rest should be obvious. You might also use appropriate tags. 'powershell' has nothing to do with your question. – John Gardeniers Mar 2 '12 at 8:30
it's a powershell command. – Jake Mar 2 '12 at 8:55
What are the client operating systems? – Zoredache Mar 2 '12 at 18:11

1 Answer 1

Invoke-Command -ComputerName RemoteComputerName { Set-ItemProperty -Path "HKCU:Control Panel\Desktop" -name WallPaper -value c:\wallpaper\wallpaper.jpg }

However, this answer does assume that the remote machine has WinRM enabled (you don't mention any OS, even though Zoredache asked). Have a look at Get-Help Invoke-Command to see how to do credentials and impersonations if you're running outside of an AD environment.

share|improve this answer
The client operating systems are Windows XP and up. – Jake Mar 6 '12 at 5:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.