Helping you here

Share This Post

Most useful CMD commands everyone should know



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 are really sounds interesting like changing wallpaper from cmd, changing pc name,generating strong passwords 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
–> To create the user
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
–> To delete the user –>
net user ABC /del
–> To see the user name who is login –>
echo %username%
–> To enable administrator user in windows –>
net user administrator /active:yes
–> 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 –>
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–>
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 –>
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 –>
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


Responses

0 Respones to "Most useful CMD commands everyone should know"

Post a Comment

Thanks For Visiting!
Please Leave Your Comment!

Related Posts Plugin for WordPress, Blogger...
 

Pages

For watching Movies

Contact Form

Name

Email *

Message *

Popular Posts

Return to top of page Copyright © 2014 / 2015 | Pro Theme Design By Mr Kilari