# Shutdown computer

**URL:** <https://forum.inductiveautomation.com/t/shutdown-computer/84483>\
**Category:** Ignition\
**Tags:** ignition81, python, scripting, perspective\
**Created:** [January 19, 2024, 7:59am UTC](https://forum.inductiveautomation.com/t/shutdown-computer/84483 "2024-01-19T07:59:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Kranjc](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_kranjc/32/43007_2.png) [@David\_Kranjc](https://forum.inductiveautomation.com/u/David_Kranjc)\
**Post date:** [January 19, 2024, 7:59am UTC](https://forum.inductiveautomation.com/t/shutdown-computer/84483/1 "2024-01-19T07:59:37Z")

</div>

Hello,  
Is it possible with Ignition to run a script that shuts down the local computer in production? The computer is running on Windows 10/11 operating system and on it runs perspective session.  
I need this because I don't need the computer on after shutting machine down.

Thank you very much.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [January 19, 2024, 8:04am UTC](https://forum.inductiveautomation.com/t/shutdown-computer/84483/2 "2024-01-19T08:04:40Z")

</div>

> [@David\_Kranjc](#):
>
> local computer

You mean the gateway?  
You could use [system.util.execute - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/system.util.execute)  
to run such commands on the gateway.

This seems like quite bad practice though

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 19, 2024, 10:29am UTC](https://forum.inductiveautomation.com/t/shutdown-computer/84483/3 "2024-01-19T10:29:24Z")

</div>

I'm assuming that you are asking about a PC acting as a Perpsective HMI on an industrial machine.  
Browser security does not allow sessions to control a computer's OS like that. It would be a huge security liability.

Most decent UPS systems have applications that run as a background service that can shutdown a PC after mains power has been off for a predetermined time. There must be someone out there doing a simple power monitor / remote shutdown application.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [January 19, 2024, 11:42am UTC](https://forum.inductiveautomation.com/t/shutdown-computer/84483/4 "2024-01-19T11:42:07Z")

</div>

> [@Transistor](#):
>
> There must be someone out there doing a simple power monitor / remote shutdown application.

Powerchute comes to mind.

> **[PowerChute Serial Shutdown | APC USA](https://www.apc.com/us/en/product-range/137943580-powerchute-serial-shutdown#overview)**
>
> UPS management, graceful shutdown, and energy management software for computers, and servers using dedicated serial or USB connections. | APC USA

---

<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:** [January 19, 2024, 12:37pm UTC](https://forum.inductiveautomation.com/t/shutdown-computer/84483/5 "2024-01-19T12:37:56Z")

</div>

_Pssst!_ **Vision** can do this. It's one of the several reasons I strongly recommend Vision for on-machine, permanent HMIs.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 24, 2025, 6:58pm UTC](https://forum.inductiveautomation.com/t/shutdown-computer/84483/6 "2025-04-24T18:58:50Z")

</div>

A post was split to a new topic: [Shut down computer from Ignition](https://forum.inductiveautomation.com/t/shut-down-computer-from-ignition/105533)
