CMD: Difference between revisions

From Lucca's Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 9: Line 9:




ipconfig: Displays the basic TCP/IP configuration for all adapters.
<code>ipconfig</code> Displays the basic TCP/IP configuration for all adapters.


ipconfig /all: Displays the full TCP/IP configuration for all adapters.
<code>ipconfig /all</code> Displays the full TCP/IP configuration for all adapters.


ipconfig /release: Releases the IP address assigned to the computer.
<code>ipconfig /release</code> Releases the IP address assigned to the computer.


ipconfig /renew: Renews the IP address assigned to the computer.
<code>ipconfig /renew</code> Renews the IP address assigned to the computer.


ipconfig /flushdns: Purges the DNS resolver cache.
<code>ipconfig /flushdns</code> Purges the DNS resolver cache.


ipconfig /registerdns: Refreshes all DHCP leases and re-registers DNS names.
<code>ipconfig /registerdns</code> Refreshes all DHCP leases and re-registers DNS names.


ipconfig /displaydns: Displays the contents of the DNS cache.
<code>ipconfig /displaydns</code> Displays the contents of the DNS cache.


ipconfig /showclassid: Displays the DHCP class ID for network adapters.
<code>ipconfig /showclassid</code> Displays the DHCP class ID for network adapters.


ipconfig /setclassid: Sets the DHCP class ID for network adapters.
<code>ipconfig /setclassid</code> Sets the DHCP class ID for network adapters.


ipconfig /allcompartments: Displays the full TCP/IP configuration for all adapters, including all compartments.
<code>ipconfig /allcompartments</code> Displays the full TCP/IP configuration for all adapters, including all compartments.


ipconfig /release6: Releases the IPv6 address assigned to the computer.
<code>ipconfig /release6</code> Releases the IPv6 address assigned to the computer.


ipconfig /renew6: Renews the IPv6 address assigned to the computer.
<code>ipconfig /renew6</code> Renews the IPv6 address assigned to the computer.


ipconfig /showclassid6: Displays the IPv6 DHCP class ID for network adapters.
<code>ipconfig /showclassid6</code> Displays the IPv6 DHCP class ID for network adapters.


ipconfig /setclassid6: Sets the IPv6 DHCP class ID for network adapters.
ipconfig /setclassid6</code> Sets the IPv6 DHCP class ID for network adapters.


ipconfig /flushdns6: Purges the IPv6 DNS resolver cache.
<code>ipconfig /flushdns6</code> Purges the IPv6 DNS resolver cache.





Revision as of 16:17, 23 February 2024

COMMON CMD USED




The ipconfig command is a command-line utility used to display and manage the IP address assigned to a machine. It provides information about the current TCP/IP network configuration, including the IP address, subnet mask, and default gateway for all adapters . In Windows, typing ipconfig without any parameters displays the computer's currently assigned IP, subnet mask, and default gateway addresses. Additional parameters can be used to perform various actions, such as releasing and renewing IP addresses, flushing the DNS cache, and displaying DNS information.


ipconfig Displays the basic TCP/IP configuration for all adapters.

ipconfig /all Displays the full TCP/IP configuration for all adapters.

ipconfig /release Releases the IP address assigned to the computer.

ipconfig /renew Renews the IP address assigned to the computer.

ipconfig /flushdns Purges the DNS resolver cache.

ipconfig /registerdns Refreshes all DHCP leases and re-registers DNS names.

ipconfig /displaydns Displays the contents of the DNS cache.

ipconfig /showclassid Displays the DHCP class ID for network adapters.

ipconfig /setclassid Sets the DHCP class ID for network adapters.

ipconfig /allcompartments Displays the full TCP/IP configuration for all adapters, including all compartments.

ipconfig /release6 Releases the IPv6 address assigned to the computer.

ipconfig /renew6 Renews the IPv6 address assigned to the computer.

ipconfig /showclassid6 Displays the IPv6 DHCP class ID for network adapters.

ipconfig /setclassid6 Sets the IPv6 DHCP class ID for network adapters.

ipconfig /flushdns6 Purges the IPv6 DNS resolver cache.




The DISM /Online /Cleanup-Image /RestoreHealth command is used to scan for corruption in the Windows image and repair any issues found. DISM stands for Deployment Image Servicing and Management, and it is a command-line tool used to service and prepare Windows images for deployment, recovery, and setup.

When you run the DISM /Online /Cleanup-Image /RestoreHealth command, it performs the following tasks:

Scans the Windows image for corruption and identifies any issues. Verifies the integrity of the system file backups in the Component Store by comparing them against known good copies from the Windows Update servers. Attempts to repair any corruption found in the Windows image by replacing the corrupted files with the known good copies.

It's important to note that running this command requires administrative privileges, and it may take some time to complete, depending on the system and the extent of the corruption.


-open cmd in admin

DISM /Online /Cleanup-Image /RestoreHealth


-after running DISM, run this right after, if errors are found, it will fix it, reboot pc

SFC /scannow


-after reboot, run CMD as admin and run again

SFC /scannow