Tags

, , ,

most useful cmd tricks
hii friends today i am going to share you some most useful cmd commands. By using these cmd commands you can do many important tasks direct from the cmd.Some of cool cmd commands  really sounds interesting like changing wallpaper from cmd, changing PC name using cmd ,generating strong passwords with cmd and many more exciting tasks.

CMD (Command Prompt)

Command Prompt, also known as cmd.exe or just cmd (after its executable file name), is the command-line interpreter on OS/2 and eComStation, Windows CE and Windows NT operating systems. It is the counterpart of COMMAND.COM in DOS and Windows 9x systems (where it is also called “MS-DOS Prompt”), or some of the Unix shells used on Unix-like systems. (More advanced Unix shells must be compared with Windows PowerShell, another command-line interpreter of Windows.) source wikipedia

 

The initial version of Command Prompt for Windows NT was developed by Therese Stowell

Most Useful CMD Commands

cmd tricks

Do not run cmd directly, right click on it and run it as a administrator

–>How to  create a user with cmd–>

net user pc pc123 /add (pc is user name & pc123 is password of the user)

–> To Check Users–>

net user

–> To check the details of user–>

net user ABC (here ABC is the name of user)

–> To change the password of a user –>

net user ABC *

–> For automatically generate strong password of a user–>

net user ABC /random

–>How to delete the user with cmd –>

net user ABC /del

–> To see the user name who is login –>

echo %username%

–>How to enable administrator user in windows using cmd –>

net user administrator /active:yes

–>How to disable administrator user in windows –>

net user administrator /active:no

–> How to Stop users from changing their own password –>

net user ABC ABC123 /passwordchg:no

–> How to allow user to change their own password –>

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–>

net user ABC ABC123 /expires:mm/dd/yy

–> How to enable password of any window user with cmd –>

net user ABC ABC123 /passwordreq:yes (here ABC123 is password of user ABC)

–> How to disable password of any window user –>

net user ABC ABC123 /passwordreq:no

–> How to know the last logged in time of a user in your windows with cmd command–>

net user administrator | findstr /B /C:”Last logon”

–> How to set password expiry date –>

net accounts /MAXPWAGE:25 (after 25 days password will expire)

–> How to Lock a user account with cmd –>

wmic useraccount where name=’ABC’ set disabled=true

–> How to Unlock a user account –>

wmic useraccount where name=’satish’ set disabled=false

–> How to add a user (like ABC) in a group (like WINDOWS) –>

net localgroup WINDOWS ABC /add

–> How to see list of users in a group –>

net localgroup WINDOWS

–> How to delete user from the group –>

net localgroup WINDOWS satish /delete

–> How to Find windows OS version from command line –>

ver

–> How to know more information about window OS  using cmd–>

systeminfo

–> How to disable Remote desktop direct from command line –>

reg add “HKEY_LOCAL_MACHINE\SYSTEM \CurrentControlSet\Control\Terminal Server” /v fDenyTSConnections /t REG_DWORD /d 1 /f

–> How to enable Remote desktop direct from command line –>

reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal 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=’xp-pc’ rename windows7-pc

–> How to Change windows wallpaper from command line –>

 reg add “HKEY_CURRENT_USER\Control Panel\Desktop” /v Wallpaper /t REG_SZ /d wallpaper_path /f
for example –> to set the image E:\photos\image1.jpg as the wall paper we need to run the command as below.
–># reg add “HKEY_CURRENT_USER\Control Panel\Desktop” /v Wallpaper /t REG_SZ /d E:\photos\image1.bmp /f

–> How to Disable or Enable Windows Automatic updates from command line –

“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update” /v AUOptions /t REG_DWORD /d 1 /f

–> How to Enable or Enable Windows Automatic updates from command line —

“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto 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

> So these are the most useful cmd commands for window users | hope you like it,if you want more exciting tricks then mail us or comment in the comment section we will surely help you.