Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the hueman domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/future4tech/public_html/wp-includes/functions.php on line 6114
PsService – Windows CMD Command - Future4Tech

PsService – Windows CMD Command

View and control services

Syntax
      psservice [\\computer [-u user] [-p passwd]] <command> <options>

Options:

   computer   The computer on which the service is running. Default=local system 

   -p passwd  Specify a password for user (optional). Passed as clear text.
              If omitted, you will be prompted to enter a hidden password.

   -u user    Specify a user name for login to remote computer(optional).

   commands:
      query      Display the status of a service
      config     Display the configuration of a service
      setconfig  Set the start type (disabled, auto, demand) of a service.
      start      Start a service
      stop       Stop a service
      restart    Stop and then restart a service
      pause      Pause a service
      cont       Resume a paused service
      depend     List the services dependent on the one specified
      security   Dump the service's security descriptor
      find       Search the network for the specified service

   -accepteula Suppress the display of the license dialog.

Typing a command followed by “- ” displays the syntax for that command.

Service States:

1 – Stopped
2 – Start Pending
3 – Stop Pending
4 – Running

When launched for the first time, PsService will create the regkey
HKCU\Software\Sysinternals\PsService\EulaAccepted=0x01

Examples:

Restart the spooler service on \\serverF4T

C:\> psservice \\serverF4T restart spooler

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *


Notice: ob_end_flush(): Failed to send buffer of zlib output compression (0) in /home/future4tech/public_html/wp-includes/functions.php on line 5464