# Turning off the monitor using shell command

**URL:** https://community.xibo.org.uk/t/turning-off-the-monitor-using-shell-command/3506
**Category:** Help Topics
**Created:** [September 16, 2015, 8:16am UTC](https://community.xibo.org.uk/t/turning-off-the-monitor-using-shell-command/3506 "2015-09-16T08:16:05Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![1111](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/1/71e660/32.png) [@1111](https://community.xibo.org.uk/u/1111)
#### Post date: [September 16, 2015, 8:16am UTC](https://community.xibo.org.uk/t/turning-off-the-monitor-using-shell-command/3506/1 "2015-09-16T08:16:06Z")

</div>

Hello!  
So I’ve been trying to create a layout that would run a shell command that would turn off the display.

So inside Layout Designer I’ve created an empty region and created a shell command inside of it.  
I’ve used two different commands already:  
shutdown /h  
and  
nircmd.exe monitor off  
But in preview I just stare at the background image and that’s it.

My guessing is that my commands are incorrect even though they are working from cmd.

If anyone can help I would really appreciate it!  
Thanks.

---

<div class="post-metadata">

### Author: ![Peter](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/peter/32/8154_2.png) [@Peter](https://community.xibo.org.uk/u/Peter)
#### Post date: [September 16, 2015, 8:22am UTC](https://community.xibo.org.uk/t/turning-off-the-monitor-using-shell-command/3506/2 "2015-09-16T08:22:03Z")

</div>

perhaps try to schedule your layout on your Windows player and see what will happen?

---

<div class="post-metadata">

### Author: ![1111](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/1/71e660/32.png) [@1111](https://community.xibo.org.uk/u/1111)
#### Post date: [September 16, 2015, 8:58am UTC](https://community.xibo.org.uk/t/turning-off-the-monitor-using-shell-command/3506/3 "2015-09-16T08:58:21Z")

</div>

The fact that I didnt see anything on the preview just made me curious.  
Sorry : (

---

<div class="post-metadata">

### Author: ![alex](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/alex/32/5782_2.png) [@alex](https://community.xibo.org.uk/u/alex)
#### Post date: [September 16, 2015, 10:55am UTC](https://community.xibo.org.uk/t/turning-off-the-monitor-using-shell-command/3506/4 "2015-09-16T10:55:08Z")

</div>

Preview won’t execute any shell commands. You’d need to run them in a Player for them to have any effect.

---

<div class="post-metadata">

### Author: ![1111](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/1/71e660/32.png) [@1111](https://community.xibo.org.uk/u/1111)
#### Post date: [September 17, 2015, 6:58pm UTC](https://community.xibo.org.uk/t/turning-off-the-monitor-using-shell-command/3506/5 "2015-09-17T18:58:07Z")

</div>

Thanks!  
Sorry for bothering,

---

<div class="post-metadata">

### Author: ![alex](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/alex/32/5782_2.png) [@alex](https://community.xibo.org.uk/u/alex)
#### Post date: [September 18, 2015, 6:33am UTC](https://community.xibo.org.uk/t/turning-off-the-monitor-using-shell-command/3506/6 "2015-09-18T06:33:52Z")

</div>


