User Tools

Site Tools


informatique:windows:cmd

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
Last revisionBoth sides next revision
informatique:windows:cmd [2021/06/22 09:01] yahikoinformatique:windows:cmd [2023/08/08 14:40] yahiko
Line 23: Line 23:
 netsh int ip reset netsh int ip reset
 netsh winsock reset netsh winsock reset
 +</codedoc>
 +
 +==== Mettre en veille Windows ====
 +Verrouiller : 
 +<codedoc code:batch>
 +Rundll32.exe User32.dll,LockWorkStation
 +</codedoc>
 +
 +Veille prolongée : 
 +<codedoc code:batch>
 +Rundll32.exe User32.dll,LockWorkStation
 +</codedoc>
 +
 +Veille simple : 
 +Il faut la veille prolongée soit désactivée : 
 +<codedoc code:batch>
 +powercfg -hibernate off
 +</codedoc>
 +
 +<codedoc code:batch>
 +rundll32.exe powrprof.dll,SetSuspendState 0,1,0
 +</codedoc>
 +
 +==== Activation Windows 2022 ====
 +<codedoc code:batch>
 +DISM /Online /Set-Edition:ServerStandard /ProductKey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx /AcceptEula
 +</codedoc>
 +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.
 +<codedoc code:batch>
 +wmic COMPUTERSYSTEM GET BootupState
 +</codedoc>
 +ou
 +<codedoc code:powershell>
 +gwmi win32_computersystem | select BootupState
 +</codedoc>
 +
 +Doit retourner :
 +<codedoc code:batch> 
 +Normal boot
 +Fail-safe boot
 +Fail-safe with network boot
 +</codedoc>
 +https://wiki.erreur503.xyz/doku.php?id=informatique:windows:cmd
 +
 +==== Connaître chemin LDAP ====
 +<codedoc code:batch> 
 +dsquery user -name UTILISATEUR
 +</codedoc>
 +
 +==== 7zip : extraire un fichier spécifique de plusieurs archives ====
 +<codedoc code:batch> 
 +7z e "C:\Logs\OldLogs\*.zip" -oC:\Informatique\logs Truc* -r
 +</codedoc>
 +
 +==== Activation Windows Server 2O22 ====
 +<codedoc code:batch>
 +DISM /Online /Set-Edition:ServerStandard /ProductKey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx /AcceptEula
 </codedoc> </codedoc>
informatique/windows/cmd.txt · Last modified: 2023/09/25 08:26 by yahiko

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki