Views
Useful Windows Commands
There are some functions that one might desire to carryout on the stations in a cybercafe that are best achieved by using Hog to send a CMD method with a command to be executed to the target stations. This document provides a list of some useful commands like this that aren't obvious how to do.
Resync station time using NTP (Microsoft article describing use of this command):
w32tm /resync
Open a control panel:
control <panel>
(where
Cause a specific folder to open on the desktop:
explorer <directory or share>
For example, explorer \\Cyber-huey\public
Cause Internet Explorer to open on the desktop and go to a specific URL:
explorer <URL>
For example, explorer http://windowsupdate.microsoft.com
Delete a directory:
rmdir /s /q <directory>
Delete a file:
del /f /q <file>
Recursively delete a directory and all its contents:
del /f /q /s <directory>
Return the value of a registry key:
reg query <key>
For example, to get the BF2 CD key on a machine:
reg query "HKLM\SOFTWARE\Electronic Arts\EA Games\Battlefield 2\ergc\"
To return the type of ATI video card installed:
reg query "HKLM\SOFTWARE\ATI Technologies\CDS\0000\0\Driver" /v Description
Report configuration of a PC:
winmsd /report outfile.txt
This will dump an exhaustive configuration report into the named file in the current directory, which can then be FTPed back using the fomAgent "getFile" function. Warning: this report takes a LONG time to run! An alternate command that returns a lot of similar info is:
systeminfo
List drivers:
driverquery
Get MAC address:
getmac
Running processes:
tasklist
A note on shortcuts: shortcuts are always addressed as ending in .lnk,
even though the ".lnk" part of the name is never visible.
Some other things we want to know how to do, that should be added to this list:
- How to launch a program from a link
- Get DeepFreeze CLI working
- How to see what programs are on the "recent" list
- How to force items in Start Menu to be sorted
- How to force trash to be emptied