How to start a series of actions in Windows (that include two reboots) after an unexpected shutdown? ...

Falsification in Math vs Science

Inline version of a function returns different value than non-inline version

Is "plugging out" electronic devices an American expression?

What do the Banks children have against barley water?

Manuscript was "unsubmitted" because the manuscript was deposited in Arxiv Preprints

Does it makes sense to buy a new cycle to learn riding?

Could a US political party gain complete control over the government by removing checks & balances?

On the insanity of kings as an argument against monarchy

Can the Protection from Evil and Good spell be used on the caster?

Extreme, unacceptable situation and I can't attend work tomorrow morning

What do hard-Brexiteers want with respect to the Irish border?

Deadlock Graph and Interpretation, solution to avoid

Could JWST stay at L2 "forever"?

Lethal sonic weapons

Where to refill my bottle in India?

The difference between dialogue marks

Which Sci-Fi work first showed weapon of galactic-scale mass destruction?

Dual Citizen. Exited the US on Italian passport recently

How do you say "canon" as in "official for a story universe"?

What is this 4-propeller plane?

What is the best strategy for white in this position?

How to manage monthly salary

Pristine Bit Checking

Landlord wants to switch my lease to a "Land contract" to "get back at the city"



How to start a series of actions in Windows (that include two reboots) after an unexpected shutdown?



The 2019 Stack Overflow Developer Survey Results Are Inbat file to disable ethernet adaptor and then reenable it after windows log inRaspberry unbootable after unexpected shutdownWindows batch file not running when I double click, how to restore association with cmd.exe?How do I run a batch script at shutdown in Windows 10 home edition?How do I make this script execute all commands in a .bat file?Run a Batch Script at Windows Shutdown using GPedit.msc from CMDTask Scheduler runs without triggering actionRunOnceEx not generating log files (Windows 7)Use PowerShell & System.IO.FileSystemWatcher to detect when a download to a specific folder is completeI want to convert jpg image sequence in folder to mov by adding windows context menu for a folder





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I'd like the following sequence of events to occur in Windows 10 after restarting from an unexpected (mostly due to power loss) shutdown:




  1. Run 2 .reg files.

  2. Run .bat file.

  3. Reboot

  4. Run .reg file.

  5. Reboot

  6. Run 2.bat files.


What's the best approach to automating this you could think of? I'm at a loss here.










share|improve this question























  • Welcome to Super User. Please note we're not a script or code-writing service. We can help if you edit your question to indicate what you've tried (including any attempted scripts, etc.) and specifically where you're stuck. To get you started, a Powershell script will work and you can trigger it on startup using Task Scheduler. Have it read the event log to determine if there was an unexpected shutdown.

    – Twisty Impersonator
    2 days ago













  • Thanks. I wasn't looking code to be written for my just some pointers on where to get started and Powershell seems to be the way. My hopes was there was some sort of software that automated this tasks through a GUI or something similar but seems like I won't be able to avoid coding.

    – loopeando
    yesterday











  • Well, the reg and bat files will need to be written by you, and an a script that "detects" the two mid-process reboots and begins the next parts of the script. But you'll start by using Task Manager to handle the unexpected restart and begin the process itself.

    – music2myear
    8 hours ago


















0















I'd like the following sequence of events to occur in Windows 10 after restarting from an unexpected (mostly due to power loss) shutdown:




  1. Run 2 .reg files.

  2. Run .bat file.

  3. Reboot

  4. Run .reg file.

  5. Reboot

  6. Run 2.bat files.


What's the best approach to automating this you could think of? I'm at a loss here.










share|improve this question























  • Welcome to Super User. Please note we're not a script or code-writing service. We can help if you edit your question to indicate what you've tried (including any attempted scripts, etc.) and specifically where you're stuck. To get you started, a Powershell script will work and you can trigger it on startup using Task Scheduler. Have it read the event log to determine if there was an unexpected shutdown.

    – Twisty Impersonator
    2 days ago













  • Thanks. I wasn't looking code to be written for my just some pointers on where to get started and Powershell seems to be the way. My hopes was there was some sort of software that automated this tasks through a GUI or something similar but seems like I won't be able to avoid coding.

    – loopeando
    yesterday











  • Well, the reg and bat files will need to be written by you, and an a script that "detects" the two mid-process reboots and begins the next parts of the script. But you'll start by using Task Manager to handle the unexpected restart and begin the process itself.

    – music2myear
    8 hours ago














0












0








0








I'd like the following sequence of events to occur in Windows 10 after restarting from an unexpected (mostly due to power loss) shutdown:




  1. Run 2 .reg files.

  2. Run .bat file.

  3. Reboot

  4. Run .reg file.

  5. Reboot

  6. Run 2.bat files.


What's the best approach to automating this you could think of? I'm at a loss here.










share|improve this question














I'd like the following sequence of events to occur in Windows 10 after restarting from an unexpected (mostly due to power loss) shutdown:




  1. Run 2 .reg files.

  2. Run .bat file.

  3. Reboot

  4. Run .reg file.

  5. Reboot

  6. Run 2.bat files.


What's the best approach to automating this you could think of? I'm at a loss here.







windows batch-file shutdown automation






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 2 days ago









loopeandoloopeando

61




61













  • Welcome to Super User. Please note we're not a script or code-writing service. We can help if you edit your question to indicate what you've tried (including any attempted scripts, etc.) and specifically where you're stuck. To get you started, a Powershell script will work and you can trigger it on startup using Task Scheduler. Have it read the event log to determine if there was an unexpected shutdown.

    – Twisty Impersonator
    2 days ago













  • Thanks. I wasn't looking code to be written for my just some pointers on where to get started and Powershell seems to be the way. My hopes was there was some sort of software that automated this tasks through a GUI or something similar but seems like I won't be able to avoid coding.

    – loopeando
    yesterday











  • Well, the reg and bat files will need to be written by you, and an a script that "detects" the two mid-process reboots and begins the next parts of the script. But you'll start by using Task Manager to handle the unexpected restart and begin the process itself.

    – music2myear
    8 hours ago



















  • Welcome to Super User. Please note we're not a script or code-writing service. We can help if you edit your question to indicate what you've tried (including any attempted scripts, etc.) and specifically where you're stuck. To get you started, a Powershell script will work and you can trigger it on startup using Task Scheduler. Have it read the event log to determine if there was an unexpected shutdown.

    – Twisty Impersonator
    2 days ago













  • Thanks. I wasn't looking code to be written for my just some pointers on where to get started and Powershell seems to be the way. My hopes was there was some sort of software that automated this tasks through a GUI or something similar but seems like I won't be able to avoid coding.

    – loopeando
    yesterday











  • Well, the reg and bat files will need to be written by you, and an a script that "detects" the two mid-process reboots and begins the next parts of the script. But you'll start by using Task Manager to handle the unexpected restart and begin the process itself.

    – music2myear
    8 hours ago

















Welcome to Super User. Please note we're not a script or code-writing service. We can help if you edit your question to indicate what you've tried (including any attempted scripts, etc.) and specifically where you're stuck. To get you started, a Powershell script will work and you can trigger it on startup using Task Scheduler. Have it read the event log to determine if there was an unexpected shutdown.

– Twisty Impersonator
2 days ago







Welcome to Super User. Please note we're not a script or code-writing service. We can help if you edit your question to indicate what you've tried (including any attempted scripts, etc.) and specifically where you're stuck. To get you started, a Powershell script will work and you can trigger it on startup using Task Scheduler. Have it read the event log to determine if there was an unexpected shutdown.

– Twisty Impersonator
2 days ago















Thanks. I wasn't looking code to be written for my just some pointers on where to get started and Powershell seems to be the way. My hopes was there was some sort of software that automated this tasks through a GUI or something similar but seems like I won't be able to avoid coding.

– loopeando
yesterday





Thanks. I wasn't looking code to be written for my just some pointers on where to get started and Powershell seems to be the way. My hopes was there was some sort of software that automated this tasks through a GUI or something similar but seems like I won't be able to avoid coding.

– loopeando
yesterday













Well, the reg and bat files will need to be written by you, and an a script that "detects" the two mid-process reboots and begins the next parts of the script. But you'll start by using Task Manager to handle the unexpected restart and begin the process itself.

– music2myear
8 hours ago





Well, the reg and bat files will need to be written by you, and an a script that "detects" the two mid-process reboots and begins the next parts of the script. But you'll start by using Task Manager to handle the unexpected restart and begin the process itself.

– music2myear
8 hours ago










0






active

oldest

votes












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1422676%2fhow-to-start-a-series-of-actions-in-windows-that-include-two-reboots-after-an%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1422676%2fhow-to-start-a-series-of-actions-in-windows-that-include-two-reboots-after-an%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...

Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...