Aut inveniam viam aut faciam

Archive for March, 2021

Windows CLI Network Troubleshooting

Posted on March 31st, 2021

Just the commands. Some are CMD commands. Some are PowerShell commands. ! computer namehostnameecho %computername%[System.NET.DNS]::GetHostByName(‘‘)    ! – two single quotes$env:COMPUTERNAMEget-ciminstance -classname Win32_ComputerSystem    ! – computer model number ! date / timedate /techo %date%time /techo %time%get-datedate    ! – this works in powershell ! MAC addressesgetmac /vipconfig /allget-netadapterwmic nic where physicaladapter=true get name,macaddressget-ciminstance win32_networkadapterconfiguration | select description, macaddress ! interfaces […]