+4 votes
101 views
Why does my PC turn itself off | How to know why my Windows 11 or Windows 10 PC shuts down

in Windows11 by (552k points)
reopened | 101 views

1 Answer

+5 votes
Best answer

1 Why does my PC turn itself off | How to know why my Windows 10 or Windows 11 PC shuts down from Event Viewer
2 Why does my PC turn itself off | How to know why my Windows 10 or Windows 11 PC shuts down from PowerShell
3 Why does my PC turn itself off | How to know why my Windows 10 or Windows 11 PC shuts down from CMD

The use we give to the computer is daily use, so it is possible that sometimes we find different problems that have a negative impact on the productivity of our work, and it is therefore important to solve this as soon as possible..

 

 

When we work on Windows 10/11 we encounter various situations that affect our work and one of them is the sudden shutdown of our computer. This can be due to numerous reasons ranging from failures in electrical stability to the presence of viruses or malware, since this affects everything we do, it will require precise administration work.

 

For this reason TechnoWikis has a series of options to analyze the cause of the equipment turning itself off. Below you will see all the steps you must follow to know how to fix that your PC turns off by itself, in several different ways each one of them explained in detail..

 

 

To stay up to date, remember to subscribe to our YouTube channel!
SUBSCRIBE ON YOUTUBE

 

 


1 Why does my PC turn itself off | How to know why my Windows 10 or Windows 11 PC shuts down from Event Viewer


This is perhaps one of the most used options by administrators and users to review everything that happens with Windows 10 / 11, the reason is that any event will be recorded for later analysis.

 

Step 1

We open the Event Viewer:

 

image

 

Step 2

Let's go to "Event Viewer - Windows Logs - System":

 

image

 

Step 3

We click on "Filter current record" located on the right side, in the window displayed in the field "<All event IDs>" we enter the following separated by commas:
 41,1074,6006,6005,6008 

image

 

Step 4

The events entered are:
  • 41: The device did not reboot properly, it is an event where the PC suddenly stopped responding, crashed or lost power
  • 1074 – is an event that is triggered when the user manually initiates a shutdown or reboot or when the system automatically reboots to apply updates
  • 6006: It is an event recorded at the time the event logging system has stopped during shutdown
  • 6005: It is an event that is created when the event registration system started, that is, when the PC is turned on.
  • 6008: means that the previous system shutdown was unexpected
Apply the changes to see all events:

 

 

image

 

step 5

We look for the associated events and double click to access the details:

 

image

 

step 6

we can access the "Details" tab for technical information:

 

image

 


2 Why does my PC turn itself off | How to know why my Windows 10 or Windows 11 PC shuts down from PowerShell

 

Step 1

From the PowerShell console we will have the possibility to carry out an analysis of the shutdown events to determine the cause of the error, we open PowerShell as administrator:

 

image

 

Step 2

We accept the permissions:

 

image

 

Step 3

We execute:
 Get-WinEvent -FilterHashtable @{ LogName = 'System'; id = 41, 1074, 6006, 6605, 6008; } | Format-List Id, LevelDisplayName, TimeCreated, Message 
image

 

Step 4

Press Enter to access the results:

 

image

 

Browse through the different events to find the details.

 

The Get-WinEvent cmdlet is responsible for accessing and displaying log events and trace log files on local and remote computers..

 


3 Why does my PC turn itself off | How to know why my Windows 10 or Windows 11 PC shuts down from CMD


From the CMD console it will also be possible to access the events associated with the shutdown where we can determine the cause of the error.

 

Step 1

To do this, open CMD as administrator:

 

image

 

Step 2

We accept UAC permissions:

 

image

 

We execute:

 wevtutil qe System /q:"*[System[(EventID=41) or (EventID=1074) or (EventID=6006) or (EventID=6005) or (EventID=6008)]]" /c:100 /f: text /rd:true 
Step 3

Browse through the different events to find the details:

 

 

image

 

Wevtutil allows us to obtain information about the event logs and their editors in Windows.
With these forms we can know in detail the cause of the equipment shutdown.

 


by (3.5m points)
edited

Related questions

+3 votes
1 answer
asked Jan 31, 2023 in Windows11 by backtothefuture (552k points) | 64 views
+5 votes
1 answer
+4 votes
1 answer
+3 votes
1 answer
asked Jun 2, 2023 in Windows11 by backtothefuture (552k points) | 60 views
+5 votes
1 answer
asked Jan 24, 2023 in Windows11 by backtothefuture (552k points) | 67 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users