# Need to Shut down PC at user closes the SambaPOS application.?

**URL:** <https://forum.sambapos.com/t/need-to-shut-down-pc-at-user-closes-the-sambapos-application/5688>\
**Category:** V4 Question\
**Created:** [June 5, 2015, 2:49pm UTC](https://forum.sambapos.com/t/need-to-shut-down-pc-at-user-closes-the-sambapos-application/5688 "2015-06-05T14:49:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![saedawke](https://forum.sambapos.com/user_avatar/forum.sambapos.com/saedawke/32/55945_2.png) [@saedawke](https://forum.sambapos.com/u/saedawke)\
**Post date:** [June 5, 2015, 2:49pm UTC](https://forum.sambapos.com/t/need-to-shut-down-pc-at-user-closes-the-sambapos-application/5688/1 "2015-06-05T14:49:41Z")

</div>

Could it possible that when user finishes his/her duty and closes the sambaPOS to automatically shutting down PC also i putted sambaPOS at startup folder ant it opens at computer starts .?

---

<div class="post-metadata">

**Author:** ![QMcKay](https://forum.sambapos.com/user_avatar/forum.sambapos.com/qmckay/32/27925_2.png) [@QMcKay](https://forum.sambapos.com/u/QMcKay)\
**Post date:** [June 5, 2015, 3:01pm UTC](https://forum.sambapos.com/t/need-to-shut-down-pc-at-user-closes-the-sambapos-application/5688/2 "2015-06-05T15:01:13Z")

</div>

Yes.

For Startup, search for KIOSK Mode here in the forum.

For Shutdown:

- create a `Start Process` Action linked to a BAT file containing a shutdown command.
- Fire the action on the Event for `Application Ending`.

The shutdown command in a BAT file would be something like this:

```auto
shutdown.exe /s /t 00

```

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [June 8, 2015, 10:25pm UTC](https://forum.sambapos.com/t/need-to-shut-down-pc-at-user-closes-the-sambapos-application/5688/3 "2015-06-08T22:25:56Z")

</div>

Added link for reference.

> [@Configuring Windows to run SambaPOS in Kiosk mode](http://forum.sambapos.com/t/configuring-windows-to-run-sambapos-in-kiosk-mode/2072):
>
> WARNING. GROUP POLICIES CONTAINS FEATURES THAT CAN LOCK DOWN YOUR COMPUTER. CREATE BACKUPS (INCLUDING WORKING IMAGES) BEFORE START AND FOLLOW ALL STEPS CAREFULLY. THIS FEATURE WORKS FOR ONLY WINDOWS PRO AND UPPER VERSIONS. YOU SHOULD BE AN ADMINISTRATOR. BE SURE SAMBAPOS LOCAL SETTINGS CONFIGURED FINE FOR WINDOWS ACCOUNTS YOU’LL TEST. Hello. Sorry for writing too much warnings. In this tutorial I’ll show you how to setup your terminals to only run SambaPOS. When a non-administrator windows u…
