Useful Windows Computer CMD Commands and Download Batch Files

CMD: Useful Windows Computer Commands Download Batch Files

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

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

Firewall off:- NetSh Advfirewall set allprofiles state off
Firewall on:-  NetSh Advfirewall set allprofiles state on

3. = [ Enable Telnet Feature ] =

dism /online /Enable-Feature /FeatureName:TelnetClient

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

Show Users: net user 
Rename:- wmic useraccount where name='Administrator' call rename name='ministrator'
Active:-    net user administrator /active:yes
Change 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  gwmetric = 1

Preferred DNS Server and Alternate DNS Server

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

6. = [ Change Computer Host Name ] =

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

7. = [ Open Powershell with Admin ] =  

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

8. = [ Join PC in Domain Network ] = 

$domain = ""
$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"

1 comment:

  1. Nice information, valuable and excellent in Job, as share good stuff with good ideas and concepts, lots of great information and inspiration, both of which I need, thanks to offer such a helpful information here.

    mobile phone repair in Canton
    iphone repair in Canton
    cell phone repair in Canton
    tablet repair in Canton
    ipad repair in Canton
    phone repair in Canton
    mobile phone repair canton
    iphone repair canton
    cell phone repair canton
    phone repair canton


Like Us on Facebook

Translate This Page

Follow on Twitter

Popular Posts