Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a (programmatic) equivalent to Linux's "Alt-SysRQ Sync Unmount reBoot" reboot sequence on Windows?

Regular shutdown causes a lot of data to be written to drive, yanking the power cannot be done remotely.

share|improve this question
up vote 2 down vote accepted

Yes, there are undocumented NtShutdownSystem(), NtSetSystemPowerState() functions exported by kernel and they can be called from userspace:

Beware: this is unclean shutdown as you requested, so you may lose your recent changes, corrupt registry etc. Use only if you need to reboot remote server, and something prevents normal reboot from happening.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .