Install-Win32Service
PackageDeployment Module Help |
Package Deployment Module |
Install-Win32Service Cmdlet |
Version 4.0.0.5 |
Install-Win32Service
Synopsis
Install Service
Syntax
Install-Win32Service [-Name] <String> [[-DisplayName] <String>] [[-PathName] <String>] [-ContinueOnError] [-DesktopInteract] [-StartService] [[-LoadOrderGroupAndDependencies] <String>] [[-StartName] <String>] [[-StartPassword] <String>] [[-ServiceTypeAndErrorControl] <String>] [[-StartMode] <String>] [[-Context] <String>] [<CommonParameters>]
Description
Use this command to install a service or a device for Windows. It is not recommended to install devices.
Parameters
-Context <String> |
||||||
User: Execution under user account; logging in HKEY_CURRENT_USER, i.e. for the user. |
||||||
|
-ContinueOnError <SwitchParameter> |
||||||
Continues script execution in spite of errors in the respective command |
||||||
|
-DesktopInteract <SwitchParameter> |
||||||
"Allow interaction with the desktop" determines, if the service may provide a user interface for every user who is logged in when the service is started. |
||||||
|
-DisplayName <String> |
||||||
Describes the service (full name). (This is the name displayed in the Services dialog box on the Control Panel.) |
||||||
|
-LoadOrderGroupAndDependencies <String> |
||||||
Combined value of: |
||||||
|
-Name <String> |
||||||
Specifies the service name in the service database. The location of the service database is in the registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services. |
||||||
|
-PathName <String> |
||||||
Specifies the full path and the name of the service's executable file (.EXE). |
||||||
|
-ServiceTypeAndErrorControl <String> |
||||||
Combined value of: |
||||||
|
-StartMode <String> |
||||||
Boot: Starts the service when the workstation is switched on. |
||||||
|
-StartName <String> |
||||||
Determines whether a service logs in with a system account or with a user account. Most services log in with a system account. |
||||||
|
-StartPassword <String> |
||||||
The password for the user account. Please note that password entries are case-sensitive. |
||||||
|
-StartService <SwitchParameter> |
||||||
Starts the service immediately after it has been installed. Then you no longer need to use the command StartService. |
||||||
|
<CommonParameters> |
For more information about common parameters, type "Get-Help about_CommonParameters". |