Electronics-HardwareWindows Technologies

Fix: Windows has encountered a critical problem and will restart automatically in one minute. Please save your work now.

Fixing Windows has encountered a critical problem and will restart automatically in one minute. Please save your work now.

Today, I’ve been greeted with this message on my Windows 7 laptop and just after every logon it kept on restarting itself by giving this message.  Here are the steps I discovered to address this without loosing the system install and the data files on it.  Hope this may come handy for someone dealing with this message.

 

Environment:

  1. HP ProBook 4530s Laptop System
  2. Microsoft Windows 7 Professional x64 bit 6.1.7601 Service Pack 1 Build 7601
  3. Running Symantec Endpoint Protection
  4. No System restore or Backup configured.

Background:

I’ve been running some application tests which needed system restarts after every test case.  After running through some test cases of installing/uninstalling applications, Windows has become slow during restart and login.  Upon logon it started giving me below notification:

Failed to connect to a windows service

Windows could not connect to the System Event Notification Service service. This problem prevents limited users from logging on to the system. As an administrator user, you can review the System Event Log for details about why the service didn’t respond.

image

Scenario:

My system was working fine till today and the issue started when I was installing Citrix XenApp 6.5 Offline Plugin Installer 6.5.   I started install, the installer asked to the restart the system so that it would resume the install post restart. I restarted the system.  Upon logging in back it started reporting me below error: Windows has encountered a critical problem and will restart automatically in one minute. Please save your work now. When you see this message, system doesn’t let you run any system commands like eventvwr, appwiz.cpl, services.msc, etc., and forcefully closes all those programs and restarts the system.

image

 

Troubleshooting:

I did various troubleshooting steps including running:

  1. Last Known Good Configuration (Advanced)
  2. Safe Mode with Networking
  3. System Repair – No issues found
  4. Disable automatic restart after failure
  5. Sfc /scannow
  6. msconfig – disable all non-windows services
  7. services.msc  – manually disabled all other services
  8. autoruns – disabled all the autorun commands/programs which were getting triggered
  9. Disabled UAC –

None of the above reported any error/issues and also didn’t help fix the problem.

 

Fix:

Here are the steps I used to Fix the Windows has encountered a critical problem and will restart automatically in one minute. Please save your work now. message.

  1. Restart the system
  2. While Booting up, press ‘F8’
  3. Choose the “Safe Mode with Networking”
  4. Logon to the System with an Administrative Privileges account
  5. Enable Windows Installer service in Safe Mode – Run below commands by
  1. Open Command Prompt  cmd.exe as an Administrator, and Run below two commands
  2. REG ADD “HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\MSIServer” /VE /T REG_SZ /F /D “Service”
  3. net start msiserver
  • Now open Add or Remove Programs by running appwiz.cpl
  • Uninstall the recently installed software – in my case Citrix Offline Plugin that didn’t get installed properly.
    1. Sort the Applications list by “Installed On” in descending order
    2. Select the application and click uninstall
    3. Do this for all applications that are installed in the last couple of days.
  • Restart the System and login in the normal mode.
  • You will no longer see Windows reporting that it’s going to restart the System.  Yay!!!
  • Now you will still be left with the actual error message that is:

    Failed to connect to a windows service

    Windows could not connect to the System Event Notification Service service. This problem prevents limited users from logging on to the system. As an administrator user, you can review the System Event Log for details about why the service didn’t respond.

    Here are the steps to deal with it:

    1. Open eventvwr
    2. Check for the last error messages in System log
    3. In my case it was reporting below DCOM error during its start up which caused it all the trouble.
    4. Log Name:      System
      Source:        Microsoft-Windows-DistributedCOM
      Date:          17-07-2014 11:53:29 AM
      Event ID:      10016
      Task Category: None
      Level:         Error
      Keywords:      Classic
      User:          SYSTEM
      Computer:      user7-laptop.local.lan
      Description:
      The application-specific permission settings do not grant Local Launch permission for the COM Server application with CLSID {C97FCC79-E628-407D-AE68-A06AD6D8B4D1}  and APPID {344ED43D-D086-4961-86A6-1106F4ACAD9B}
      to the user NT AUTHORITY\SYSTEM SID (S-1-5-18) from address LocalHost (Using LRPC). This security permission can be modified using the Component Services administrative tool.

    5. The both reported CLSID and APPID are related to IPBusEnum service that translates to “PnP-X IP Bus Enumerator” service. 
    6. I noticed that service was in disabled state and when started it was failing with dependent service “Function Discovery Provider Host” being not running.
    7. I’ve enabled and manually started both the services and since then the DCOM error faded away.

     

    Additional Post fix steps to prevent this from recurring or quick resolve this issue:

    1. Update your antivirus program/software and run Complete System scan
    2. Enable System Restore for your System  (C:) Drive by going through
    1. Start Menu > Right click Computer > Click Properties
    2. Click on “System Protection” in the left pane
    3. It will bring to you below “System Protection” properties tab:image
    4. Select the System drive (C:) , Click Configure
    5. In the Next wizard choose “Restore system settings and previous version of files” and specify a limit for “Disk Space Usage”                                                                                 image
  • Ensure you have enough disk space to accommodate creation of System Restore Point
  • Then go ahead and have your first system restore point created.
  • Advertisements

    One thought on “Fix: Windows has encountered a critical problem and will restart automatically in one minute. Please save your work now.

    Leave a Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.