Tag Archives: cmd
Create administrator user account in command prompt
Execute system command in C#

Execute system commands in C# using Process and ProcessStartInfo classes. Code void ExecuteCommand(String command) { Process process = new Process();…

Disk Defragmentation from the command line

Analysis defrag.exe c: -a -vdefrag.exe c: -a -v -v verbose Defragmentation defrag.exe c:defrag.exe c: Partial Defragmentation defrag.exe c: -rdefrag.exe c:…

Log off user from command line

Force current user to be logged off: shutdown /l /f /t 0shutdown /l /f /t 0 /l log off /f…

Lock your computer using command line

1. Open windows command line (cmd) 2. Execute: rundll32.exe user32.dll, LockWorkStationrundll32.exe user32.dll, LockWorkStation

Shutdown or restart windows from command line

Shutdown shutdown -s -f -t 1shutdown -s -f -t 1 Restart shutdown -r -f -t 1shutdown -r -f -t 1…

How to find computer name using command prompt

Open your cmd and enter: hostnamehostname or tracert [ip_address]tracert [ip_address] for ex. tracert 192.168.1.2

View Hard Drive Partitions with DiskPart in Windows

1. Open command line (cmd) in your Windows machine. 2. Type diskpartdiskpart 3. You will be prompted for administrator password…

List of all Windows users & groups for the local machine

List users NET USERSNET USERS   List groups NET LOCALGROUPNET LOCALGROUP   Accounts Policy Information NET ACCOUNTSNET ACCOUNTS  

Change user password from the command line – Win7

If you would like to quickly change user password without having to enter the control panel: 1. Open command line…

Previous Page