Link to home
Start Free TrialLog in
Avatar of nestey
nestey

asked on

Automaticly close running program/process in Windows 10

I need to force a program or the process to stop so I can automatically reboot a windows 10 computer. I use to use psshutdown on a XP machine that would force the shutdown which automatically closed my PowerPoint slideshow but that doesn't seem to work with Win 10. If nothing is running then I can automatically reboot the computer using task scheduler but I need a way to force PowerPoint slideshow to close so nothing is running.
Avatar of Mr Tortu(r)e
Mr Tortu(r)e
Flag of France image

Hi,
does the old command work or not?

shutdown -r -force
you can add -t xxxx with xxxx in seconds to schedule, or task scheduler yes.
Avatar of nestey
nestey

ASKER

just tried it no it does not work, I have already tried shutdown -t 0 -r -f and that didn't work. Seems like if anything is opened it will not force a reboot
Ok.
So the issue is that the /force option does not work. But is the system really accepting the command "shutdown" on Windows 10 or not?

I found that link, which provide a lot of useless info at start, but you will find powershell command at bottom, that might help you :
http://www.tenforums.com/tutorials/7418-shut-down-computer-windows-10-a.html
ASKER CERTIFIED SOLUTION
Avatar of McKnife
McKnife
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nestey

ASKER

Shutdown -f -r - t 0  works

Thanks
That does, but
shutdown -t 0 -r -f
does not? That would be most weird.