Editing <span id="firstHeadingTitle">CMD</span>
Read
Edit
View history
Not logged in
Talk
Contributions
Create account
Log in
Editing
CMD
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
COMMON CMD USED <hr> 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. <code>ipconfig</code> Displays the basic TCP/IP configuration for all adapters. <code>ipconfig /all</code> Displays the full TCP/IP configuration for all adapters. <code>ipconfig /release</code> Releases the IP address assigned to the computer. <code>ipconfig /renew</code> Renews the IP address assigned to the computer. <code>ipconfig /flushdns</code> Purges the DNS resolver cache. <code>ipconfig /registerdns</code> Refreshes all DHCP leases and re-registers DNS names. <code>ipconfig /displaydns</code> Displays the contents of the DNS cache. <code>ipconfig /showclassid</code> Displays the DHCP class ID for network adapters. <code>ipconfig /setclassid</code> Sets the DHCP class ID for network adapters. <code>ipconfig /allcompartments</code> Displays the full TCP/IP configuration for all adapters, including all compartments. <code>ipconfig /release6</code> Releases the IPv6 address assigned to the computer. <code>ipconfig /renew6</code> Renews the IPv6 address assigned to the computer. <code>ipconfig /showclassid6</code> Displays the IPv6 DHCP class ID for network adapters. <code>ipconfig /setclassid6</code> Sets the IPv6 DHCP class ID for network adapters. <code>ipconfig /flushdns6</code> Purges the IPv6 DNS resolver cache. <hr> USE THIS IS WINDOWS IF ACTING UP HELLA WEIRD The <code>DISM /Online /Cleanup-Image /RestoreHealth</code> 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 <code>DISM /Online /Cleanup-Image /RestoreHealth</code> 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 <code>DISM /Online /Cleanup-Image /RestoreHealth</code> -after running DISM, run this right after, if errors are found, it will fix it, reboot pc <code>SFC /scannow</code> -after reboot, run CMD as admin and run again <code>SFC /scannow</code> <hr> -Let's not forget the G.O.A.T., Use in Run to reset internet settings especially if you are having connecting MS app online or if Sonicwall Netextender breaks the connection <code>RunDll32.exe InetCpl.cpl,ResetIEtoDefaults</code> <hr> Create a Local user with CMD and make it into Admin, IF The username has a period in between please use the quotations. <code>net user "user.name" password /add</code> then <code>net localgroup administrators "user.name" /add</code> If you need to remove Admin creds <code>net localgroup administrators "user.name" /delete</code> if you need to delete the local account <code>net user "user.name" /delete</code> Disable builtin Administrator and Guest accounts: <code>net user "Administrator" /active:no</code> <code>net user "Guest" /active:no</code> <hr> Disable hibernation file to resolve issues with shutdown and free up some disk space. <code>powercfg.exe /Hibernate off</code> <hr> Log off someone from a desktop session List all sessions: <code>query session</code> Logoff the corresponding session: <code>logoff {number}</code> <hr> Fix right click on Windows 11, doesn't need admin: <code>reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve</code> <hr> Check if the Password is Expired Get-ADUser -identity INSERTclientUSERNAMEHERE -properties PasswordLastSet, PasswordExpired, PasswordNeverExpires | ft Name, PasswordLastSet, PasswordExpired, PasswordNeverExpires <hr> Force the DC to sync the password start-adsyncsynccycle -policytype delta <hr> Join a domain add-computer -domainname "YourDomainName" -restart <hr> Getting New Teams to install when it refuses to [Needs Admin] Add-ProvisionedAppPackage -Online -PackagePath "{PATH-TO-TEAMS}.msix" -SkipLicense
Summary:
Please note that all contributions to Lucca's Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Lucca's Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
🎨 Theme Settings
Quick Presets
Code & Pre Block Text Color
Code / Pre Text Color
Background
Primary Background
Secondary Background
Tertiary Background
Hover Background
Text
Primary Text
Secondary Text
Muted Text
Accent & Borders
Accent
Accent Dim
Border
Border 2
Header & Sidebar
Header Start
Header End
Sidebar Background
Status Colors
Success
Danger
Warning
Reset to Default
Save & Close