------------------------------------------------
Enabling the administrator account in Vista
net
user administrator /active:yes
------------------------------------------------
Clear Print Spool Windows 7/Vista
If you have a long list of hung print jobs in Windows 7 or Vista, you
can clear the print queue easily by using these steps.
1. Click Start.
2. Type Command.
3. Right-click Command Prompt and select Run as administrator.
4. Type net
stop spooler then press Enter.
5. Type del
%systemroot%\System32\spool\printers\* /Q then press Enter.
6. Type net
start spooler then press Enter.
The print queue on your Windows 7/Vista system should now be cleared.
Type exit and press Enter to exit the command window
------------------------------------------------
Force/Kill Windows Process
sc
queryex SMTPSvc
This will give you the following information:
SERVICE_NAME: SMTPSvc
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 4 RUNNING
(STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE
: 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT
: 0x0
WAIT_HINT
: 0x0
PID
: 388
FLAGS
Look for the PID number, then execute the following command:
taskkill
/PID 388 /F
where the /F flag is needed to force the process kill (first try
without the flag).
------------------------------------------------