User Tools

Site Tools


informatique:windows:cmd

Commandes diverses

Commandes relatives au réseau

Ping via une passerelle spécifique

ping -k PASSERELLE IP_A_JOINDRE

Par exemple :

ping -k 192.168.1.1 fr.wikipedia.org

Ping via une interface spécifique

ping IP_A_JOINDRE -S ADDR_INTERFACE_SOURCE

Par exemple :

ping fr.wikipedia.org -S 192.168.1.86

Reset couche IP et winsock

netsh int ip reset
netsh winsock reset

Mettre en veille Windows

Verrouiller :

Rundll32.exe User32.dll,LockWorkStation

Veille prolongée :

Rundll32.exe User32.dll,LockWorkStation

Veille simple : Il faut la veille prolongée soit désactivée :

powercfg -hibernate off
rundll32.exe powrprof.dll,SetSuspendState 0,1,0

Activation Windows 2022

DISM /Online /Set-Edition:ServerStandard /ProductKey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx /AcceptEula

https://learn.microsoft.com/en-us/answers/questions/717383/windows-server-2022-standard-activation.html

Connaître le mode de démarrage de Windows

Pour savoir s'il est en sans échec, ou en démarrage normal. Pas toujours évident en télémaintenance.

wmic COMPUTERSYSTEM GET BootupState

ou

gwmi win32_computersystem | select BootupState

Doit retourner :

Normal boot
Fail-safe boot
Fail-safe with network boot

https://wiki.erreur503.xyz/doku.php?id=informatique:windows:cmd

Connaître chemin LDAP

dsquery user -name UTILISATEUR

7zip : extraire un fichier spécifique de plusieurs archives

7z e “C:\Logs\OldLogs\*.zip” -oC:\Informatique\logs Truc* -r

Activation Windows Server 2O22

DISM /Online /Set-Edition:ServerStandard /ProductKey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx /AcceptEula

Vérifier MD5

certutil -hashfile <file> MD5

informatique/windows/cmd.txt · Last modified: 2023/09/25 08:26 by yahiko

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki