📄 psservice.htm
字号:
utility, <i>PsService</i> enables you to logon
to a remote system using a different account,
for cases when the account from which you run
it doesn't have required permissions on the remote
system. <i>PsService</i> includes a unique service-search
capability, which identifies active instances
of a service on your network. You would use the
search feature if you wanted to locate systems
running DHCP servers, for instance. </p>
<p>Finally, <i>PsService</i> works on both NT 4
and Windows 2000, whereas the Windows 2000 Resource
Kit version of <i>SC</i> requires Windows 2000,
and <i>PsService</i> doesn't require you to manually
enter a "resume index" in order to obtain
a complete listing of service information.</p>
</td>
</tr>
<tr>
<td height="40" colspan="3" valign="middle"><span class='sectionheader'>Installation</span></td>
</tr>
<tr>
<td colspan="3" valign="TOP">
<p>Just copy <i>PsService </i>onto your executable
path, and type "psservice".<br>
<br>
<i>PsService </i>works on NT 3.51, NT 4.0, Win2K
and Windows XP.
</td>
</tr>
<tr>
<td height="40" colspan="3" valign="middle"><span class='sectionheader'>Usage</span></td>
</tr>
<tr>
<td colspan="3" valign="TOP">
<p>The default behavior of <i>PsService </i>is to
display the configured services (both running
and stopped) on the local system. Entering a command
on the command-line invokes a particular feature,
and some commands accept options. Typing a command
followed by "-?" displays information
on the syntax for the command.<br>
<font color="#000000" size="2" face="arial"></font><br>
<b>usage: psservice [\\computer [-u username]
[-p password]] <command> <options></b><br>
<table width="100%" border="0">
<tr>
<td valign="top" align="LEFT" width="180"><b>
query</b></td>
<td valign="top">Displays the status of a service</td>
</tr>
<tr>
<td valign="top" align="LEFT" width="150"><b> config</b></td>
<td valign="top">Displays the configuration
of a service</td>
</tr>
<tr>
<td valign="top" align="LEFT"><b> start</b></td>
<td valign="top">Starts a service</td>
</tr>
<tr>
<td valign="top" align="LEFT"><b> stop</b></td>
<td valign="top">Stops a service</td>
</tr>
<tr>
<td valign="top" align="LEFT"><b> restart</b></td>
<td valign="top">Stops and then restarts a service</td>
</tr>
<tr>
<td valign="top" align="LEFT"><b> pause
</b></td>
<td valign="top">Pauses a service</td>
</tr>
<tr>
<td valign="top" align="LEFT"><b> cont</b></td>
<td valign="top">Resumes a paused service</td>
</tr>
<tr>
<td valign="top" align="LEFT"><b> depend</b></td>
<td valign="top">Lists the services dependent
on the one specified</td>
</tr>
<tr>
<td valign="top" align="LEFT"><b> find</b></td>
<td valign="top">Searches the network for the
specified service</td>
</tr>
<tr>
<td valign="top" align="LEFT"><b> \\computer</b></td>
<td valign="top">Targets the NT/Win2K system
specified. Include the -u switch with a username
and password to login to the remote system
if your security credentials do not permit
you to obtain performance counter information
from the remote system. If you specify the
-u option, but not a password with the -p
option, <i>PsService</i> will prompt you to
enter the password and will not echo it to
the screen.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="40" colspan="3" valign="middle"><span class='sectionheader'>How it Works</span></td>
</tr>
<tr>
<td colspan="3" valign="TOP">
<p><i>PsService</i> uses the Service Control Manager
APIs that are documented in the Platform SDK.
</td>
</tr>
<tr>
<td height="40" colspan="3" valign="middle"><span class='sectionheader'>PsTools</span></td>
</tr>
<tr>
<td colspan="3" valign="TOP">
<p><i>PsService</i> is part of a growing kit of
Sysinternals command-line tools that aid in the
adminstration of local and remote Windows NT/2K
systems named <a href="../../ntw2k/freeware/pstools.shtml"><i>PsTools</i></a>.
</td>
</tr>
<tr>
<td colspan="3" height="40" valign="top" align="center">
<p><br><br><br>
<a href="../../files/psservice.zip"><b>Download
PsService (20KB)</b></a></p>
<p><a href="../../files/Pstools.zip"><b>Download PsTools
Suite</b><font
face="arial"><b></b></font></a></p>
<a href="#top"><b>Back to Top</b></a> </td>
</tr>
</table>
</td>
</tr>
</table>
</TD>
</TR>
</TABLE>
<!-- #EndEditable --></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
<!-- #EndTemplate --></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -