The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,570 other followers

Archive for March 4th, 2019

Vloerkleden l Tapijten l IKEA

Posted by jpluimers on 2019/03/04

Read the rest of this entry »

Posted in LifeHacker, Power User | Leave a Comment »

A way to skip the Firefox “Well, this is embarrassing” during a sudden reboot

Posted by jpluimers on 2019/03/04

A while ago, I asked about [WayBack] “Is there a way to skip the Firefox “Well, this is embarrassing” during a sudden reboot and just continue with the loading of the default pages? – Jeroen Wiert Pluimers – Google+

Later I found the workaround at both and [WayBackWell this is embarrassing message | Firefox Support Forum | Mozilla Support with more elaboration at [WayBackDon’t give Chance for Firefox to Show ‘Well, this is embarrassing” message next time again | Techdows:

  1. Open Firefox
  2. Type about:config in the addressbar
  3. Confirm the
    This might void your warranty!
    by clicking
    I accept the risk!
  4. Search for browser.sessionstore.resume_from_crash
  5. Double click it so the value changes from the default value true to the user set value false

Now after a sudden reboot of the machine, a start of Firefox just loads the default page.

–jeroen

Posted in Firefox, Power User, Web Browsers | Leave a Comment »

Windows 10: force to sleep at night, but allow wake up for Windows Updates

Posted by jpluimers on 2019/03/04

I do not like a machine that sleeps after a certain amount of inactivity as I might have a long running job going on.

Usually however, I do like to have a machine off at night, even if I forget to put it asleep.

Exceptions for sleeping are just two:

  • automatic back-up schedule
  • allowing Windows Updates

Luckily you can tell Windows 10 to allow for all cases.

Enabling wake-up during Windows Updates

Note I’m not fully sure which BIOS settings you need to enable – if any- to have this work on all systems. Wake up works on my machine for these [WayBackpsshutdown parameter combinations:

  • psshutdown.exe -h -t 0 (Hibernate)
  • psshutdown.exe -d -t 0 (Suspend)

It fails with these:

  • psshutdown.exe -s -t 0 -f (Shutdown without poweroff)
  • psshutdown.exe -k -t 0 (Poweroff)

The odd thing: Wake-on-LAN can usually wake up the last two.

This is done with the gpedit.msc (via [WayBackHow to prevent Windows 10 waking from sleep when traveling in bag? – Super User, thanks xxxbence)

Follow this path:

  1. Local Computer Policy
  2. Computer Configuration
  3. Administrative Templates
  4. Windows Components
  5. Windows Update

Double click Enabling Windows Update Power Management to automatically wake up the system to install scheduled updatesto show the below dialog.

Enable it:

so it looks like this:

Forcing sleep (in my case hibernate) using the Task Scheduler

In Windows 7..10: disable shutdown/hibernate/sleep/restart from UI I wrote about shutdown /h /f to hibernate a machine. You can force to run this from the taskschd.msc (Windows Task Scheduler):

I wanted history for tasks, so I started taskschd.msc as Administrator, then on the right Actions Pane, I clicked on Enable All Tasks History:

 also explained in [WayBackHow can I enable the Windows Server Task Scheduler History recording? – Stack Overflow and can be verified/set on the console as well:

  • Get as any user: wevtutil get-log Microsoft-Windows-TaskScheduler/Operational
  • Set as Administrator: wevtutil set-log Microsoft-Windows-TaskScheduler/Operational /enabled:true

I named the task __ sleep at 2300 with these settings:

Ensure the Program/script itself is shutdown and the parameters are /h /f:

–jeroen

Posted in Power User, Windows, Windows 10 | Leave a Comment »

 
%d bloggers like this: