Skip to main content

Service StartType Change

Summary

This script configures the start type for specified services.

Parameters

  • Services: A list of services to configure.
  • StartType: The desired start type for the specified services.

Note:
Please ensure each service name is enclosed in single quotes.
Example: 'wuauserv', 'bits', 'cryptsvc', 'VaultSvc', 'dtestv'

Available StartType Values

  • DelayStart: Sets the service start type to 'Automatic (Delayed Start)'
  • Manual: Sets the service start type to 'Manual'
  • Automatic: Sets the service start type to 'Automatic'
  • Disabled: Sets the service start type to 'Disabled'

Please have the following file hash whitelisted in your security environment to prevent blocking:

File Path:
C:/ProgramData/_automation/script/SVC-SetStartType/SVC-SetStartType.ps1
File Hash (SHA256):
16C105FE35406D9980177C52EB0D68FDE07A5CE3948A2949761C7359C1AC0AB
File Hash (MD5):
BCEC14B37F7DF39D1F9D74AC14B7D526

Sample Run

Sample Run

Variables

NameDescription
WorkingDirectoryThe directory where the PS1 file will be placed for operation.
ProjectNameThe name of the PS1 file and its parent folder.
psoutStores the output of the PS1 execution.

Global Parameters

NameExampleRequiredDescription
TicketCreationCategory123FalseSpecify this if a ticket is required upon failure or success, pointing to the appropriate category on the service board. Ensure the correct category is used, mapped to the required service board with the proper priority, as per client requirements.

User Parameters

NameExampleRequiredDescription
Services'wuauserv', 'bits', 'cryptsvc', 'VaultSvc'TrueA list of services whose start type needs to be changed. Each service name must be enclosed in single quotes. Separate multiple services with a comma (,).
StartTypeManualTrueThe start type to set for the specified services. Accepted values are: DelayStart, Manual, Automatic, Disabled.

Output

  • Script log
  • Ticket