Windows Classic script

WT
Warren T
Marston (Holdings) Limited

Hi all

Might be a silly question to ask but does anyone know what script command I can run to restart the agent running on a Windows Classic device?

We have to use the legacy Remote Control plugin to control a set of these devices, but we notice that sometimes the agent possibly bugs out on the device, we can see it is online and we go to connect using the legacy plugin but for some reason their screen does not mirror and the connection is dropped. Nothing in the logs specifies why this is but when the user restarts their machine the issue is resolved until it occurs again. Due to how the machines are set up it is impossible for them to restart the agent themselves.

We're hoping it is just the agent that has bugged out on the device, so therefore we would like to run a script using the dashboard (as the remote control doesn't last for us to try and run cmd line). Is there a script command that can do this? The machines are running Windows 7 Embedded.

We can only run a Legacy script command, the devices are incompatible with the other script commands. Is there a legacy command available?

Server is running MobiControl 15.5.1.1010

Thanks

2 years ago
SOTI MobiControl
ANSWERS
RC
Raymond Chan Diamond Contributor
2 years ago

If your core problem is about the automatic termination of the remote-control session, then you likely should check the quality of your connection.  If MobiControl finds that it cannot sustain reasonable refresh rate for the remote control screen for an extended period of time, it will terminate the remote control session.  If connection quality cannot be improved, the usual practice is to reduce the resolution (i.e. number of colour, etc.) of the remote session.

WT
Warren T
2 years ago

Hi Raymond

In this instance its not about connection quality, the devices in question can remain online and connected for extended periods and those devices can move around with sometimes near perfect network signal quality and this problem still occurs. It's almost as if the connection times out as legacy plugin will remain open for about 30 seconds until terminated but the devices always remain online (for the affected devices).

A restart of the affected devices fixes the problem. Aware that the OS being Windows that there is a good possibility is the cause, we want to rule out if its simply the agent that has glitched out resulting in the failed connection. This is why I was wondering if there is a legacy script command we can send to the machine to restart the agent to see if this fixes the problem which would be easier than having to get the user to fully restart the machine.

Thanks

RC
Raymond Chan Diamond Contributor
2 years ago

It's you who said "the connection is dropped" in your last post and now you said the connection is perfect.  Maybe you should clarify what happen or what you see on your device screen with screenshot(s)/video(s) or describe in more detail and clarity.  Please avoid using vague terms such as "bug out".

Also, the fact that your device is online for extended period of time does not necessarily mean the maximum achievable bandwidth of your connection can sustain the requested video streaming data in real-time. The bottleneck may not be in the signal quality/strength reported on your device screen.

Finally, if  your problem is related to remote session window (referred to as "legacy plug-in" in your posts) showing the device screen suddenly freeze/become blank and then the remote session window close totally, then just try adjusting the remote picture quality (resolution/bit-depth) to lower value and restart  your remote session to see if your problem is solved.

WT
Warren T
2 years ago

Hi Raymond

Apologies my choice of words might not have been the best but its hard to describe the problem entirely without being a little vague.

When I said that the connection is dropped, the device remains online, the signal quality can improve but despite this the remote connection does not work using the remote control legacy plugin as the plugin will load, and then we are left with a blank screen. After 30 seconds the plugin closes, but the device remains online. If the device user remains where they are with a good signal strength, they can restart their device and this restores the ability for ourselves to connect to it and their screen mirrored. The "bugging out" that I mentioned is whether or not the agent on the device itself has got stuck in some kind of loop or state resulting in us not being able to remote control it despite it being online.

I already run all of the devices in remote control using a lower resolution and drop in bit depth and have done for years, this hasn't changed anything other than when the remote control session starts and work as intended makes it run more stable, it doesn't fix the overal problem of when suddenly we lose the ability to control the machine.

So as it stands, I would like to know if there is a script that can be sent to the device from the dashboard (rather than the remote control plugin) to restart the agent, as its a Windows Classic enrollment I would like to know if there is a command that can be sent to restart the agent. The typical restartagent command does not work. If there is not, I'll carry on as I was and ask the user to restart their machine to resolve.

Thank you

3
3sly
a year ago

Hey Warren,

Just want to add a few suggestions in this post in case someone else has the same issue or wants to try this.

Possible things you could try are:

  • restart the agent service with a script
    Run a command through powershell. Make sure to specify the full location of the program like:
    C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -WindowStyle hidden <script.ps1>
    If that doesnt work try with the start or the shellexecute script command on the powershell exe with parameters. Scripts are visible to enduser as a quick flash even with the hidden property.

  • Try the commloader with the -connect parameters. Location is in your agent directory (programfiles)
    Documentation is aged so I am unsure of the current parameters that work
    Tips and Tricks (soti.net)

If you found the solution to your problem I would love to hear how you managed this.

Kind regards,

Esly

M
MNMOD@SOTI
2 years ago

Hi Warren T,

Thank you for posting on SOTI Pulse!

When you say other scripts does not work, do you mean that powershell script would not be compatible with devices? You can have a look at the below link to check scripts available in our help document.

Script Commands for Windows Desktop Classic Devices (soti.net)

You can also try shellexecute and run it from command prompt and then stop/start service from windows services and see if this works for you.

Please let us know if you have any further questions for us.

Kind regards,

Technical Support Specialist | SOTI | +1 905.624.9828 | SOTI.net l Discussion Forum | Log a Case Online l Facebook l LinkedIn l Twitter 

Similar Discussions