09.02.2014 Views

Windows sysinternals

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

188 Part II Usage Guide<br />

In the preceding example, the user running PsInfo had X: mapped to a remote file share.<br />

When querying drive information from remote computers, PsInfo gathers information in the<br />

SYSTEM context, so only globally-visible volumes are reported. This will not include remote<br />

drive mappings unless the mappings are created in the SYSTEM context, which makes them<br />

visible to all processes on the computer.<br />

Note PsInfo does not distinguish SUBST associations. If a drive letter is associated with a local<br />

path, it will appear in the listing as another fixed drive with the exact same characteristics as the<br />

real volume on the system.<br />

The –h option reports installed hotfixes on the target system. Hotfix information is gathered<br />

from several points in the registry that are known to contain information about <strong>Windows</strong> and<br />

Internet Explorer hotfixes.<br />

The –s option reports installed software applications, according to uninstall information for<br />

the applications found in the registry.<br />

To report the results as comma-separated values (CSVs), add the –c option to the command<br />

line. Results from each computer are reported on one line, which is helpful for generating<br />

a spreadsheet. To use a character other than a comma as the delimiter, add the –t option<br />

followed by the desired character. To use the tab character, use \t as in the following<br />

example:<br />

psinfo -c -t \t<br />

If PsInfo is reporting on the local computer or a single remote computer, PsInfo’s exit code is<br />

the service pack number of that system. When reporting on multiple systems, PsInfo returns<br />

a conventional success or failure code.<br />

PsKill<br />

PsKill is a command-line utility to terminate processes by ID or by image name. It can also be<br />

used to terminate all the descendent processes of the target process. And as with all other<br />

PsTools, it can target processes and process trees on remote computers, using alternate<br />

credentials if needed.<br />

Warning PsKill terminates processes immediately. Forcibly terminating a process does not<br />

give it an opportunity to shut down cleanly and can cause data loss or system instability. In<br />

addition, PsKill does not provide extra warnings if you try to terminate a system-critical process<br />

such as Csrss.exe. Terminating a system-critical process results in an immediate <strong>Windows</strong><br />

blue-screen crash.<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!