Forums
New posts
Search forums
News
Security News
Technology News
Giveaways
Giveaways, Promotions and Contests
Discounts & Deals
Reviews
Users Reviews
Video Reviews
Support
Windows Malware Removal Help & Support
Inactive Support Threads
Mac Malware Removal Help & Support
Mobile Malware Removal Help & Support
Blog
Log in
Register
What's new
Search
Search titles only
By:
Search titles only
By:
Reply to thread
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Security
Guides - Privacy & Security Tips
Command Prompt Tips, Tricks & Cool Things You Can Do
Message
<blockquote data-quote="TairikuOkami" data-source="post: 774644" data-attributes="member: 61892"><p><a href="https://www.computerhope.com/msdos.htm" target="_blank">MS-DOS help and commands</a></p><p></p><p><a href="https://ss64.com/nt" target="_blank">An A-Z Index of the Windows CMD command line | SS64.com</a></p><p></p><p>WMIC is a pretty nice command to change DNS and network settings.</p><p></p><p>[CODE]Get adapter's index number</p><p>wmic nicconfig get caption,index,TcpipNetbiosOptions</p><p></p><p>rem Disable IPv6</p><p>netsh int ipv6 isatap set state disabled</p><p>netsh int teredo set state disabled</p><p>netsh interface ipv6 6to4 set state state=disabled undoonstop=disabled</p><p>reg add "HKLM\System\CurrentControlSet\Services\Tcpip6\Parameters" /v "DisabledComponents" /t REG_DWORD /d "255" /f</p><p></p><p>rem Setup DNS Servers on DHCP Enabled Network (CloudflareDNS)</p><p>wmic nicconfig where DHCPEnabled=TRUE call SetDNSServerSearchOrder ("1.1.1.1")</p><p></p><p>rem Setup IP, Gateway and DNS Servers based on the MAC address (To Enable DHCP: wmic nicconfig where macaddress="28:E3:47:18:70:3D" call enabledhcp)</p><p>wmic nicconfig where macaddress="D0:17:C2:D0:30:DC" call EnableStatic ("10.10.10.12"), ("255.255.255.248")</p><p>wmic nicconfig where macaddress="D0:17:C2:D0:30:DC" call SetDNSServerSearchOrder ("156.154.71.2,156.154.70.2")</p><p>wmic nicconfig where macaddress="D0:17:C2:D0:30:DC" call SetGateways ("10.10.10.10")</p><p></p><p>rem 0 - Disable LMHOSTS Lookup on all adapters / 1 - Enable</p><p>reg add "HKLM\System\CurrentControlSet\Services\NetBT\Parameters" /v "EnableLMHOSTS" /t REG_DWORD /d "0" /f</p><p></p><p>rem 2 - Disable NetBIOS over TCP/IP on all adapters / 1 - Enable / 0 - Default</p><p>wmic nicconfig where TcpipNetbiosOptions=0 call SetTcpipNetbios 2</p><p>wmic nicconfig where TcpipNetbiosOptions=1 call SetTcpipNetbios 2</p><p>[/CODE]</p><p>You can also run powershell commands from CMD:</p><p>[CODE]rem Remove All Apps including Store</p><p>%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe "Get-AppxPackage -AllUsers | Remove-AppxPackage"[/CODE]</p></blockquote><p></p>
[QUOTE="TairikuOkami, post: 774644, member: 61892"] [URL="https://www.computerhope.com/msdos.htm"]MS-DOS help and commands[/URL] [URL="https://ss64.com/nt"]An A-Z Index of the Windows CMD command line | SS64.com[/URL] WMIC is a pretty nice command to change DNS and network settings. [CODE]Get adapter's index number wmic nicconfig get caption,index,TcpipNetbiosOptions rem Disable IPv6 netsh int ipv6 isatap set state disabled netsh int teredo set state disabled netsh interface ipv6 6to4 set state state=disabled undoonstop=disabled reg add "HKLM\System\CurrentControlSet\Services\Tcpip6\Parameters" /v "DisabledComponents" /t REG_DWORD /d "255" /f rem Setup DNS Servers on DHCP Enabled Network (CloudflareDNS) wmic nicconfig where DHCPEnabled=TRUE call SetDNSServerSearchOrder ("1.1.1.1") rem Setup IP, Gateway and DNS Servers based on the MAC address (To Enable DHCP: wmic nicconfig where macaddress="28:E3:47:18:70:3D" call enabledhcp) wmic nicconfig where macaddress="D0:17:C2:D0:30:DC" call EnableStatic ("10.10.10.12"), ("255.255.255.248") wmic nicconfig where macaddress="D0:17:C2:D0:30:DC" call SetDNSServerSearchOrder ("156.154.71.2,156.154.70.2") wmic nicconfig where macaddress="D0:17:C2:D0:30:DC" call SetGateways ("10.10.10.10") rem 0 - Disable LMHOSTS Lookup on all adapters / 1 - Enable reg add "HKLM\System\CurrentControlSet\Services\NetBT\Parameters" /v "EnableLMHOSTS" /t REG_DWORD /d "0" /f rem 2 - Disable NetBIOS over TCP/IP on all adapters / 1 - Enable / 0 - Default wmic nicconfig where TcpipNetbiosOptions=0 call SetTcpipNetbios 2 wmic nicconfig where TcpipNetbiosOptions=1 call SetTcpipNetbios 2 [/CODE] You can also run powershell commands from CMD: [CODE]rem Remove All Apps including Store %WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe "Get-AppxPackage -AllUsers | Remove-AppxPackage"[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Top