I had some processes running sur mon Windows (taking a long time) and many open applications (Eclipse, sqlDeveloper etc).
**C'est important to know that while the PC was running - It was disconnected depuis le web (physically supprimé the Ethernet cable)**
Yesterday my système redémarré causing the processes to stop and applications began closing/crashing. I lost a bunch of data...
My question is comment find out what caused Windows to redémarrer?
Je soupçonne c'est related to a Windows mise à jour?
**UPDATE**
Adding the events from Event viewer:
```
The kernel power manager has initiated a shutdown transition.Action: Power Action Reboot
The system has prepared for a system initiated reboot from Sleeping (Idle).
Virtualization-based security (policies: VBS Enabled,VSM Required,Boot Chain Signer Soft Enforced) is enabled due to HyperV.
The last shutdown's success status was true. The last boot's success status was true.
EFI time zone bias: 2047. Daylight flags: 0. Firmware time: 2023-12-14T00:33:07.000000000Z.
The boot menu policy was 0x1.
The boot type was 0x0.
There are 0x1 boot options on this system.
The bootmgr spent 0 ms waiting for user input.
The firmware reported boot metrics.
ACPI thermal zone \_TZ.TZ00 has been enumerated.
ACPI thermal zone \_TZ.TZ01 has been enumerated.
The system has detected a system initiated reboot from Sleeping (Idle).
Connectivity state in standby: Disconnected, Reason: NIC compliance
The system session has transitioned from 0 to 1.Reason SessionUnlock
The system session has transitioned from 1 to 3.Reason InputAccelerometer
The system session has transitioned from 3 to 4.Reason InputAccelerometer
The system session has transitioned from 4 to 6.Reason InputHid
```
Windows 11 PC redémarrered automatiquement?
Re: Windows 11 PC redémarrered automatiquement?
To find out the reason for a redémarrer, use one du following commands:
-
PowerShell :
```
Get-WinEvent -FilterHashtable @{ LogName = 'System'; Id = 41, 1074, 6006, 6605, 6008; } | Format-List Id, LevelDisplayName, TimeCreated, Message
```
-
CMD :
```
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
```
Si le ordinateur has crashed, and not just rebooted,
check dossier `%SystemRoot%\Minidump` for a `.dmp` fichier whose
creation-time corresponds vers le time du crash.
If found, analyze this fichier using
[BlueScreenView](https://www.nirsoft.net/utils/blue_screen_view.html),
or zip it up and publish it online for us to have a look
(OneDrive, Dropbox etc).
If minidumps ne sont pas activé, I suggest to activer Small mémoire dumps.
See the article
[Configure Windows 10 to Create Minidump on BSOD](https://www.tenforums.com/tutorials/5560-configure-windows-10-create-minidump-bsod.html).
Useful reference :
[How to find out why your PC shut down for no reason on Windows 10 and 11](https://www.windowscentral.com/how-find-reason-pc-shutdown-no-reason-windows-10).
-
PowerShell :
```
Get-WinEvent -FilterHashtable @{ LogName = 'System'; Id = 41, 1074, 6006, 6605, 6008; } | Format-List Id, LevelDisplayName, TimeCreated, Message
```
-
CMD :
```
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
```
Si le ordinateur has crashed, and not just rebooted,
check dossier `%SystemRoot%\Minidump` for a `.dmp` fichier whose
creation-time corresponds vers le time du crash.
If found, analyze this fichier using
[BlueScreenView](https://www.nirsoft.net/utils/blue_screen_view.html),
or zip it up and publish it online for us to have a look
(OneDrive, Dropbox etc).
If minidumps ne sont pas activé, I suggest to activer Small mémoire dumps.
See the article
[Configure Windows 10 to Create Minidump on BSOD](https://www.tenforums.com/tutorials/5560-configure-windows-10-create-minidump-bsod.html).
Useful reference :
[How to find out why your PC shut down for no reason on Windows 10 and 11](https://www.windowscentral.com/how-find-reason-pc-shutdown-no-reason-windows-10).