Show Menu
Cheatography

CMD Utils Cheat Sheet by

Utils commands in windows cmd

sfc

/scannow
Immediate scan of your system and will replace files as necessary.
/scanonce
Scan the next time you restart your system
/scanboot
Schedules a scan to be performed every time you restart your system
Scans several thousand basic Windows files, comparing them against the original versions that shipped with Windows
Require elevated privileges em cmd (admin)
 

chkdsk

/F
Go ahead and fix those errors.
/R
Forces chkdsk to locate bad sectors and recover inform­ation from them.
Repair file system errors, locate bad sectors, and recover readable inform­ation from those bad sectors

recimg

/creat­eimage <di­r>
New recovery image in the location specified, sets it as the active
/setcu­rrent <di­r>
Sets the active recovery image
/dereg­ister
Deregi­sters the current custom recovery image
/showc­urrent
Displays the path to the directory in which the current active
Create and configure a custom recovery image for Windows to use when you Refresh your PC
 

netsh

http add urlacl url=ht­tps­://­{IP­/Co­mpu­ter­nam­e}:­{port}/ user=E­veryone
Add to urlacl
http delete urlacl url=ht­tps­://­{IP­/Co­mpu­ter­nam­e}:­{port}/
Delete do urlacl
http show urlacl
Show urlacl
advfir­ewall firewall add rule name="IIS Express (non-S­SL)­" action­=allow protoc­ol=TCP dir=in localp­ort­={Port} profil­e=p­rivate remote­ip=­loc­als­ubnet
Add firewall port
É possível usar comandos no contexto interface IP do Netsh para configurar o protocolo TCP/IP (incluindo endere­Ã§os, gateways padrão, servidores DNS e servidores WINS) e para exibir inform­ações de config­ura­Ã§Ã£o e estatí­st­icas.
http:/­/te­chn­et.m­ic­ros­oft.co­m/p­t-b­r/l­ibr­ary­/cc­738­592­(v=­ws.1­0).aspx
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Batch Cheat Sheet
          Windows Terminal Cheat Sheet

          More Cheat Sheets by ridermansb

          Shortcuts Cheat Sheet
          IntelliJ IDE Shortcuts Cheat Sheet