Ylianst / MeshCentral

A complete web-based remote monitoring and management web site. Once setup you can install agents and perform remote desktop session to devices on the local network or over the Internet.
https://meshcentral.com
Apache License 2.0
4.27k stars 571 forks source link

Change the agent desktop background #4686

Open bravery-only opened 2 years ago

bravery-only commented 2 years ago

Is it possible to add this feature to change the background image of the agent's desktop?

si458 commented 2 years ago

Can you please explain a use-case for this?

You generally only remove the wallpaper when you connect tobmake the remote support quicker and then put it back when you disconnect?

Ylianst commented 2 years ago

Try this button on the bottom right. It will toggle the remote desktop background. This can be used to speed up remote desktop.

image

bravery-only commented 2 years ago

I mean to change the background image of the desktop screen with another image

si458 commented 2 years ago

@Ylianst I believe the question was can he change the wallpaper, not toggle it off and on

mwllgr commented 2 years ago

You could use a Powershell script for that - at least if it's a static image, couldn't you?

krayon007 commented 2 years ago

The wallpaper toggle code uses this internally

I could add a helper method or a console command where you can specify an image file?

bravery-only commented 2 years ago

It would be great if you could send me a code to change the desktop background, but be sure to include this feature in Mesh Central.

krayon007 commented 2 years ago

With server version 1.0.96, there is a console command deskbackground, which lets you get/set the windows desktop background image path.

bravery-only commented 2 years ago

I changed the background in Windows 7, but in Windows 10 & 11 it gives this error: Command returned an exception error: child_process.execFile(): Could not exec [C:\Program Files\meshagent.exe]

krayon007 commented 2 years ago

Does it give that error when fetching the desktop too, or only when setting it?

bravery-only commented 2 years ago

Does it give that error when fetching the desktop too, or only when setting it?

only when setting it