Advertise Here

Support our Sponsors

Sunday, March 1, 2015

Most useful CMD commands everyone should know??

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

>hope you like it,if you want more exciting tricks then mail us or comment in the comment section we will surely help you.

No comments:

Post a Comment

Get Thousands of Visitors for Your Website

autosurf

Get Free Dot Tk Domain

Earn Money by Just Shortening URL