Useful Windows Computer CMD Commands and Download Batch Files

Useful Windows Computer CMD Commands and Download Batch Files

CMD: Useful Windows Computer Commands https://www.nkworld4u.com/and Download Batch Files


All Commands are Works with CMD (Run as Administrator)
1. = [ Enable dotnet features 3.5 (including 2.0 and 2.5) ] = 


Dism /online /enable-feature /featurename:NetFx3 /All /Source:F:\sources\sxs /LimitAccess


F: Windows DVD Drive letter or Pen Drive Letter


2. = [ Turn off/on Windows defender Firewall ] =


Firewall off:-  NetSh Advfirewall set allprofiles state off

Firewall on:-  NetSh Advfirewall set allprofiles state on

allprofiles: Domain/Public/Private Firewall

3. = [ Enable Telnet Feature ] =


dism /online /Enable-Feature /FeatureName:TelnetClient


4. = [ Rename, Active and Change Administrator Password ] =


Show All Users: net user 

Rename administrator:- wmic useraccount where name='Administrator' call rename name='ministrator'
Active administrator:-    net user administrator /active:yes
Change administrator Password:- net user administrator nk@123

5. =[ Set IPv4 IP address, Subnet Mask, Default Gateway And DNS ] =


netsh interface ip set address name="Ethernet" source=static 192.168.1.45 255.255.255.0 192.168.1.1  gwmetric = 1


Preferred DNS Server and Alternate DNS Server


netsh interface ip set dns name="Ethernet" static 192.168.1.1

netsh interface ip add dns name="Ethernet" 192.168.1.1 index=2
netsh interface ip add dns name="Ethernet" 192.168.1.1 index=3
netsh interface ip add dns name="Ethernet" 192.168.1.1 index=4
netsh interface ip add dns name="Ethernet" 192.168.1.1 index=5
netsh interface ip add dns name="Ethernet" 192.168.1.1 index=6

6. = [ Change Computer Host Name ] =


WMIC computersystem where caption="%COMPUTERNAME%" rename NKWORLD4U


7. = [ Open Powershell with Admin Privilege] = 


powershell -Command "Start-Process PowerShell -Verb RunAs"


8. = [ Join Computer in Domain Network ] = 


$domain = "nkworld4u.com"

$password = "nk@12345" | ConvertTo-SecureString -asPlainText -Force
$username = "nkworld4u" 
$credential = New-Object System.Management.Automation.PSCredential($username,$password)
Add-Computer -DomainName $domain -Credential $credential

9. = [ Start/Stop Services ] = 

Example : Windows Update Services


sc config wuauserv start=auto

net start wuauserv
net stop wuauserv

10. = [ Shutdown and Restat Computer ] =  


Restart PC:- shutdown.exe /r /t 05 /c "Rebooting System in 5 Secounds"

shutdown:-  shutdown.exe /s /t 05 /c "Rebooting System in 5 Secounds"
Narendra Sharma

Narendra is a Young Entrepreneur Blogger having Good Technical skills, He also an Experienced Article Writer. He likes to Share Knowledge and Experience with People.

Post a Comment (0)
Previous Post Next Post