How can I shutdown PC?
-
@rtubbs316, good question. I added this to the examples. I think others could use this too. I also added "Abort shutdown"
This is the command assuming you want it to wait 60 seconds. Use /t 1 to shutdown in 1 second:
shutdown /s /t 60
You could also add a /f for "force"
shutdown /s /t 60 /f
You can also abort the shutdown like this:
shutdown /a
Type this at a cmd prompt to get the full useage of the shutdown command:
shutdown /?
-
@russ I'm also having issues using the reboot and shutdown commands. I've called my PC "computer" and so I've tried to ask Alexa both "Alexa, ask TRIGGERcmd to shutdown computer" and "Alexa, ask TRIGGERcmd to shut down in 1 minute computer".
However, Alexa responds with "Could not find a computer with voice word shutdown in 1 minute." (same issue with rebooting also).
-
Assuming your voice field is set to "reboot", your sentence should be: "Alexa, ask TRIGGERcmd to run Reboot".
If you have more than one computer and want to run a command on your non-default computer, you can say, "Alexa, ask TRIGGERcmd to run Reboot on Computer" to specify the computer.
Also if you click the "Voice commands" link on the website while you're logged in, you'll see a list of sentences in the "Say this" column.
Also, make sure you test this from the website first. If you don't see the "Reboot in 10 seconds" option on the website, you probably don't have the background service installed yet. Background commands only show up when you have the background service installed. Background commands are meant to be runnable even if you're not logged into your PC.
-
@russ Sorry but Im new at this. Where do i find the screen to even type in "shutdown/s/t1" ? You seem to jump right into things but I cant even get on the same page. excuse my "newbie" status.
-
OK, start by going to the tray icon, right click, and click on GUI command editor... right
-
ok, so now the reboot command is on the gui command editor but it does not appear under the "actions" in my profile... step by step instructions are missing my friend, or are not obviously apparent to the newbie ie me.
-
@alpha-neuron, I think the reason your reboot command isn't showing up is the background service isn't working on your computer or you didn't install it yet. You can use foreground commands, but you'll have to be logged in for them to work. That's not a problem for most people. So please just try switching the reboot command's Ground field to foreground instead of background.
-
@russ Thanks, I ended up changing to foreground.
-
How do I shut down my macbook, I tried to put these codes above but it didn't work
-
@Ivan-Freitas, I posted a mac solution here in the mac section.