[Personnel Reference] Windows General Admin Tips
Windows General Administration Tips for day to day task. These are commands I use in day to day operation to get quick info and control our domain users. Most of commands may work in domain environment, but you can modify it to work with work-group environment if you know the remote PC id password.
Also I am using PSTOOLS to accompany the tasks. You should download pstools and extract them in c:\pstools folder.
Most of pstools commands require remote registry on remote PC must be running. you can start that service on remote PC by using following command.
TIP: When the Utilities Won’t Connect Because of Remote Registry
1
| psservice \\remotepc start RemoteRegistry |
Inquire Remote PC Hardware Info like Board / serial and OS Architecture 32bit/64bit.
– To get Board number of local pc
1
| wmic baseboard get product,Manufacturer,version,serialnumber |
– To get Board number of remote pc
1
| wmic /node:"remotepc" baseboard get product,Manufacturer,version,serialnumber |
– To get remote PC Architecture like 32bit or 64bit
1
| wmic /node:"remotepc" os get osarchitecture |
PSTOOLS RELATED
# PSLOGGEDON COMMANDS
To check which user is logged on remote PC,
1
| psloggedon \\remotepc |
# PSEXEC COMMANDS
– To execute any command on remote PC like
1
| psexec \\remtotepc ipconfig |
– To open COMMAND prompt of remote user
1
| psexec \\remotepc cmd |
-Interacting with the Logged On User on the Remote PC
1
| psexec \\remotepc -d -i notepad |
# PSINFO COMMANDS
Getting general info of OS, uptime etc with disk info as well
1
| psinfo -d \\remotepc |
# PSLIST COMMANDS
To get running process list from remote PC.
1
| pslist \\remotepc |
# PSKILL COMMANDS
– Kill any running program on remote PC.
1
| pskill \\remotepc notepad |
# PSSHUTDOWN COMMANDS
– To shutdown remote PC
1
| psshutdown \\remotepc -d |
# WINDOWS BUILTIN SHUTDOWN TOOL
Its recommended to use windows builtin shutdown utility/tool
– To Shutdown local PC in 30 seconds with popup message.
1
| shutdown /s /t 30 /c "Shutdown by Admin" |
– To restart Local PC in 30 seconds
1
| shutdown /r /t 30 /c "Restart by Admin" |
– To shutdown REMOTE PC in 30 seconds with a message
1
| shutdown /m \\remotepc /s /t 30 /c "Shutdown by Admin" |
– To restart REMOTE PC in 30 seconds
1
| shutdown /m \\remotepc /r /t 30 /c "Shutdown by Admin" |
# WINDOWS TASK LIST / KILL TOOLS
# WINDOWS BUILTIN TASK LIST TOOL (to view remote pc running process task)
1
| tasklist /S REMOTEPC |
– To kill remote PC task by name
1
| taskkill /S REMOTEPCNAME /F /IM notepad.exe |
# WINDOWS BUILTIN TASKKILL TOOL (to kill any task)
– to kill local task by name with force
1
| taskkill /IM /F notepad.exe |
– to kill local running task by PID
1
| taskkill /PID 1234 /T |
Posting Komentar untuk "[Personnel Reference] Windows General Admin Tips"