Site Tools


informatique:windows:powershell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
informatique:windows:powershell [2025/08/12 13:20] yahikoinformatique:windows:powershell [2026/05/28 10:08] (current) yahiko
Line 179: Line 179:
 (get-date) – (gcim Win32_OperatingSystem).LastBootUpTime (get-date) – (gcim Win32_OperatingSystem).LastBootUpTime
 </code> </code>
 +
 +=====  Déterminer le type de stockage ===== 
 +
 +Pour savoir si Windows détecte un SSD ou un HDD. Utile sur de la virtualisation.
 +
 +<code powershell>
 +Get-PhysicalDisk
 +</code>
 +
 +Pour avoir seulement le nom et le type de stockage :
 +
 +<code powershell>
 +Get-PhysicalDisk | Select-Object FriendlyName, MediaType
 +</code>
 +
 +Si ''Unspecified'' est remonté c'est que le contrôleur disque ne permet pas à Windows ne connaître le type de support. Sinon ''SSD'' ou ''HDD'' sont affichés.
 +
 +=====  Vérifier si le TRIM est activé ===== 
 +
 +<code powershell>
 +fsutil behavior query DisableDeleteNotify
 +</code>
 +
 +Si ''NTFS DisableDeleteNotify = 0'' est retourné, le TRIM est bien activé.
informatique/windows/powershell.1755004807.txt.gz · Last modified: by yahiko