# How to launch remote desktop from perspective view (system.util.execute permissions?)

**URL:** <https://forum.inductiveautomation.com/t/how-to-launch-remote-desktop-from-perspective-view-system-util-execute-permissions/55873>\
**Category:** Ignition\
**Tags:** perspective, ignition81, scripting\
**Created:** [February 8, 2022, 5:41pm UTC](https://forum.inductiveautomation.com/t/how-to-launch-remote-desktop-from-perspective-view-system-util-execute-permissions/55873 "2022-02-08T17:41:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![djs](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@djs](https://forum.inductiveautomation.com/u/djs)\
**Post date:** [February 8, 2022, 5:41pm UTC](https://forum.inductiveautomation.com/t/how-to-launch-remote-desktop-from-perspective-view-system-util-execute-permissions/55873/1 "2022-02-08T17:41:27Z")

</div>

I’m trying to make a button that launches a remote desktop session to one of our servers.  
This command works in the Script Console: `system.util.execute(["mstsc", "-v:hostname"])`  
It launches Remote Desktop and immediately ask for login credentials to that server.

However, when i put this code into a button, it does nothing… (both in designer preview and browser). My best guess is that it has something to do with what browsers are permitted to do etc., but I’m really not sure.

Does anyone know why the command works in the script console but not in the browser?  
And if so, is there any way to make this work?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 8, 2022, 6:05pm UTC](https://forum.inductiveautomation.com/t/how-to-launch-remote-desktop-from-perspective-view-system-util-execute-permissions/55873/2 "2022-02-08T18:05:48Z")

</div>

I would try to run that command in the gateway, because Perspective scripts run in the gateway service. (Even if you run your browser in the server, the gateway service won’t have access to the desktop.)

And no, browsers do not permit you to run any code locally outside the browser.

---

<div class="post-metadata">

**Author:** ![jacksone](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@jacksone](https://forum.inductiveautomation.com/u/jacksone)\
**Post date:** [February 8, 2022, 6:07pm UTC](https://forum.inductiveautomation.com/t/how-to-launch-remote-desktop-from-perspective-view-system-util-execute-permissions/55873/3 "2022-02-08T18:07:49Z")

</div>

You may want to look into Guacamole by Apache.  
[https://guacamole.apache.org](https://guacamole.apache.org)  
It turns remote desktop sessions into web pages and may provide the functionality you are looking for.
