All most useful cmd command for your pc to configure pc setting.


Hello guys i am back with new useful post in this session we will learn how to command your computer by using command prompt here we are show all basic most useful command given below.

these command will be used in command prompt as admin.

 How to  create a user with cmd 
C:\Windows\system32>net user pc pc123 /add (pc is user name & pc123 is password of the user)
 To Check Users 
C:\Windows\system32>net user

 To check the details of user 
C:\Windows\system32>net user ABC (here ABC is the name of user)
 To change the password of a user 
C:\Windows\system32>net user ABC *
 For automatically generate strong password of a user 
C:\Windows\system32>net user ABC /random
 How to delete the user with cmd 
C:\Windows\system32>net user ABC /del
 To see the user name who is login 
C:\Windows\system32>echo %username%
 How to enable administrator user in windows using cmd 
C:\Windows\system32>net user administrator /active:yes
` How to disable administrator user in windows 
C:\Windows\system32>net user administrator /active:no
 How to Stop users from changing their own password 
C:\Windows\system32>net user ABC ABC123 /passwordchg:no
 How to allow user to change their own password 
C:\Windows\system32>net user ABC ABC123 /passwordchg:yes (here ABC is user name and ABC123 is password)
 How to set user account expiry date according to our requirement 
C:\Windows\system32>net user ABC ABC123 /expires:mm/dd/yy
 How to enable password of any window user with cmd 
C:\Windows\system32>net user ABC ABC123 /passwordreq:yes (here ABC123 is password of user ABC)
 How to disable password of any window user 
C:\Windows\system32>net user ABC ABC123 /passwordreq:no
 How to know the last logged in time of a user in your windows with cmd command 
C:\Windows\system32>net user administrator | findstr /B /C:”Last logon”
 How to set password expiry date 
C:\Windows\system32>net accounts /MAXPWAGE:25 (after 25 days password will expire)
 How to Lock a user account with cmd 
C:\Windows\system32>wmic useraccount where name=’ABC’ set disabled=true
 How to Unlock a user account 
C:\Windows\system32>wmic useraccount where name=’satish’ set disabled=false
 How to add a user (like ABC) in a group (like WINDOWS) 
C:\Windows\system32>net localgroup WINDOWS ABC /add
 How to see list of users in a group 
C:\Windows\system32>net localgroup WINDOWS
 How to delete user from the group 
C:\Windows\system32>net localgroup WINDOWS satish /delete
 How to Find windows OS version from command line 
C:\Windows\system32>ver
 How to know more information about window OS  using cmd 
C:\Windows\system32>systeminfo
 @ THESE COMMANDS ARE USED FOR REGISTRY EDITOR ONLY.
How to disable Remote desktop direct from command line 
reg add “HKEY_LOCAL_MACHINESYSTEM CurrentControlSetControlTerminal Server” /v fDenyTSConnections /t REG_DWORD /d 1 /f
 How to enable Remote desktop direct from command line 
reg add “HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal Server” /v fDenyTSConnections /t REG_DWORD /d 0 /f
 How to change computer name from command line 
WMIC computersystem where caption=’currentname’ rename newname
for example –> wmic computersystem where caption=’HH-pc’ rename windows7-pc
 How to Change windows wallpaper from command line 
 reg add “HKEY_CURRENT_USERControl PanelDesktop” /v Wallpaper /t REG_SZ /d wallpaper_path /f
for example –> to set the image E:photosimage1.jpg as the wall paper we need to run the command as below.
–># reg add “HKEY_CURRENT_USERControl PanelDesktop” /v Wallpaper /t REG_SZ /d E:photosimage1.bmp /f
 How to Disable or Enable Windows Automatic updates from command line 
“HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto Update” /v AUOptions /t REG_DWORD /d 1 /f
 How to Enable or Enable Windows Automatic updates from command line 
“HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdateAuto Update” /v AUOptions /t REG_DWORD /d 0 /f
~ How to Disable Automatic updates service ~
sc config wuauserv start= disabled
~ How to Stop Automatic updates service ~
net stop wuauserv

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s