User Tools

Site Tools


informatique:windows:cmd

This is an old revision of the document!


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

informatique/windows/cmd.1677057963.txt.gz · Last modified: 2023/02/22 09:26 by yahiko

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki