From ebfa530d1e0cb86b2a256389c9c9b66b1ac55ef4 Mon Sep 17 00:00:00 2001 From: Ichbine Date: Mon, 10 Mar 2025 12:11:46 +0100 Subject: [PATCH] =?UTF-8?q?ajout=20de=20la=20r=C3=A9cup=C3=A9ration=20info?= =?UTF-8?q?rmation=20machines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Récupération Informations machines.md | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Windows/Gestion des postes/Récupération Informations machines.md diff --git a/Windows/Gestion des postes/Récupération Informations machines.md b/Windows/Gestion des postes/Récupération Informations machines.md new file mode 100644 index 0000000..992a5b4 --- /dev/null +++ b/Windows/Gestion des postes/Récupération Informations machines.md @@ -0,0 +1,58 @@ +
+

+ + + +

+
+
+

Récupération des information machine sous Windows

+
+ +# **Gestion des information machine via cmd ** +# Info machine +```cmd +systeminfo | findstr /B /C:"Nom de l'hôte" /C:"OS Name" /C:"OS Version" /C:"Architecture" +``` +# Info processeur +```cmd +wmic cpu get Name, NumberOfCores, NumberOfLogicalProcessors, MaxClockSpeed +``` +# Info mémoire (équivalent lsmem) +```cmd +wmic memorychip get Capacity, Manufacturer, PartNumber, Speed +``` +# Info processus en cours (équivalent lsof et ps) +```cmd +wmic process get ProcessId, Name, ExecutablePath +``` +```cmd +tasklist +``` +# Surveillance machine +```cmd +tasklist /v +``` +--- +--- +# **Gestion des informations machine via PowerShell ** +# Info machine +```powershell +Get-ComputerInfo | Select-Object CsName, WindowsVersion, OsArchitecture +``` +# Info processeur +```powershell +Get-CimInstance -ClassName Win32_Processor | Select-Object Name, NumberOfCores, NumberOfLogicalProcessors, MaxClockSpeed +``` +# Info mémoire +```powershell +Get-CimInstance -ClassName Win32_PhysicalMemory | Select-Object Capacity, Manufacturer, PartNumber, Speed +``` +# Info processus en cours +```powershell +Get-Process | Select-Object Id, ProcessName, Path +``` +# Surveillance machine +```powershell +Get-Process | Sort-Object CPU -Descending | Select-Object -First 10 Id, ProcessName, CPU +``` \ No newline at end of file