107 commandes Windows / PowerShell — copiez et collez dans votre terminal
ipconfig /all
ipconfig /flushdns
ipconfig /release && ipconfig /renew
ping 8.8.8.8 -t
tracert 8.8.8.8
netstat -ano
netstat -b
nslookup google.com
nslookup -type=MX gmail.com
netsh wlan show interfaces
netsh wlan show profiles
netsh wlan show profile name="SSID" key=clear
arp -a
route print
netsh interface show interface
systeminfo
msinfo32
dxdiag
winver
wmic os get Caption,Version,BuildNumber
wmic cpu get Name,NumberOfCores,MaxClockSpeed
wmic memorychip get Capacity,Speed,Manufacturer
wmic diskdrive get Model,Size,Status
wmic baseboard get Manufacturer,Product,Version
wmic bios get SMBIOSBIOSVersion,Manufacturer,ReleaseDate
wmic path win32_videocontroller get Name,AdapterRAM,DriverVersion
powercfg /batteryreport
powercfg /sleepstudy
powercfg /energy
msconfig
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
DISM /Online /Cleanup-Image /ScanHealth
chkdsk C: /f /r
chkdsk C: /scan
mdsched.exe
bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildbcd
bcdedit /enum all
winsat formal
wevtutil qe System /c:10 /f:text
wevtutil qe Application /c:10 /f:text
tasklist
tasklist /svc
taskkill /F /PID 1234
taskkill /F /IM notepad.exe
sc query
sc start NomService
sc stop NomService
net start
services.msc
Get-Process | Sort-Object CPU -Desc | Select -First 15
Get-Service | Where-Object {$_.Status -eq 'Running'}
diskpart
diskpart…
wmic diskdrive get Status
fsutil fsinfo drives
fsutil volume diskfree C:
defrag C: /U /V
defrag C: /A
cleanmgr /sagerun:1
Get-PhysicalDisk | Select FriendlyName,Size,MediaType,HealthStatus
dir C:\ /s /a | find "bytes"
regedit
reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion
reg query HKLM\SYSTEM\CurrentControlSet\Services
reg export HKCU backup.reg
reg import backup.reg
gpupdate /force
gpedit.msc
secpol.msc
netsh advfirewall show allprofiles
netsh advfirewall set allprofiles state on
netsh advfirewall set allprofiles state off
netsh advfirewall firewall show rule name=all
Get-MpComputerStatus
Get-MpThreatDetection
cipher /e /s:C:\Dossier
auditpol /get /category:*
whoami /all
net user
net localgroup Administrators
devmgmt.msc
driverquery
driverquery /v /fo csv > drivers.csv
pnputil /enum-drivers
Get-WmiObject Win32_PnPSignedDriver | Select DeviceName,DriverVersion
sfc /verifyonly
msdt.exe -id DeviceDiagnostic
perfmon
resmon
perfmon /report
xperf
typeperf "\Processor(_Total)\% Processor Time" -si 1
Get-Counter -Counter "\Processor(_Total)\% Processor Time"
Get-Counter -Counter "\Memory\Available MBytes"
Get-HotFix | Sort-Object InstalledOn -Desc
Get-WindowsUpdateLog
Get-EventLog -LogName System -EntryType Error -Newest 20
Get-ChildItem HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall
winget list
winget upgrade --all
winget search <nom>
choco list --local-only
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Get-NetAdapter | Select Name,Status,LinkSpeed