远程更改 Windows 7 壁纸

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/23065179/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 11:30:48  来源:igfitidea点击:

Changing Windows 7 Wallpaper Remotely

windowsbatch-filevbscriptdesktop-wallpaper

提问by John Doe

I am trying to remotely change the wallpaper on about 50 computers that are running Win 7 in a WORKGROUP environment.

我正在尝试远程更改在 WORKGROUP 环境中运行 Win 7 的大约 50 台计算机上的墙纸。

I have local admin rights to all of them plus they are running an agent (Faronics) that lets me push .bat .exe .msi .vbs and .ps1 to them remotely.

我对所有这些人都拥有本地管理员权限,而且他们正在运行一个代理 (Faronics),让我可以远程将 .bat .exe .msi .vbs 和 .ps1 推送给他们。

Just wondering if there was any application that lets me do that remotely or if not, what is the easiest way to get my image to these machines and set it as default wallpaper?

只是想知道是否有任何应用程序可以让我远程执行此操作,或者如果没有,将我的图像发送到这些机器并将其设置为默认墙纸的最简单方法是什么?

回答by PA.

The wallpaper that Windows uses is in the registry under the HKCU\Control Panel\Desktop\Wallpaperkey

Windows使用的壁纸是在注册表中的下HKCU\Control Panel\Desktop\Wallpaper

you just can change it with the REGcommand.

你可以用REG命令改变它。

See REG /?and then try...

看看REG /?然后试试...

reg query "HKCU\Control Panel\Desktop" /v Wallpaper

and

reg add "HKCU\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d D:\my.bmp /f

回答by XP_Forever

Replacing the file in the following path C:\Users\[user name]\AppData\Roaming\Microsoft\Windows\Themes\TranscodedWallpaper.jpgis hit or miss depending upon the other desktop background settings shown on the GUI and file type.

替换以下路径中的文件C:\Users\[user name]\AppData\Roaming\Microsoft\Windows\Themes\TranscodedWallpaper.jpg是否命中取决于 GUI 上显示的其他桌面背景设置和文件类型。

I have been able to successfully replace the file with another .jpgfile renamed TranscodedWallpaper.jpgand put in its place but the Desktop doesn't just update by itself.

我已经能够成功地用另一个.jpg重命名的文件替换该文件TranscodedWallpaper.jpg并将其放置在其位置,但桌面不仅会自行更新。

You have to force it with the Rundll32.exe user32.dll,UpdatePerUserSystemParameterscommand.

你必须用Rundll32.exe user32.dll,UpdatePerUserSystemParameters命令强制它。

This is also hit or miss. I have had it work several times correctly while physically on the computer but cannot get the computer to do the same remotely.

这也是命中注定。我已经在计算机上正常工作了几次,但无法让计算机远程执行相同的操作。

Still working on a 100% working remote solution to fully answer the question.

仍在研究 100% 有效的远程解决方案以完全回答问题。

回答by Adio Bytes

You can use intelliadmin network administrator to change the desktop pictures remotely on all computers at once

您可以使用intelliadmin网络管理员一次远程更改所有计算机上的桌面图片