0
서비스 이름을 알고 충분한 권한이있는 경우 Windows 서비스를 PowerShell에서 자동으로 다시 시작하도록 설정하려면 어떻게해야합니까?PowerShell에서 Windows 서비스를 자동으로 다시 시작하도록 설정하려면 어떻게합니까?
내가 PowerShell을 1.0을 사용하고, 그리고 OS가 당신을 요청 할 수있다 Windows Server 2003에
서비스 이름을 알고 충분한 권한이있는 경우 Windows 서비스를 PowerShell에서 자동으로 다시 시작하도록 설정하려면 어떻게해야합니까?PowerShell에서 Windows 서비스를 자동으로 다시 시작하도록 설정하려면 어떻게합니까?
내가 PowerShell을 1.0을 사용하고, 그리고 OS가 당신을 요청 할 수있다 Windows Server 2003에
입니다 :
Set-Service [service name] -startuptype automatic
참조 :
그것은 서비스 stratup 모드를 설정의> get-help set-service
NAME
Set-Service
SYNOPSIS
Starts, stops, and suspends a service, and changes its properties.
SYNTAX
Set-Service [-StartupType {Automatic | Manual | Disabled}] [-DisplayName <string>] [-PassThru] [-Status <string>] [
-InputObject <ServiceController>] [-Description <string>] [-ComputerName <string[]>] [-confirm] [-whatif] [<CommonP
arameters>]
Set-Service [-Status <string>] [-StartupType {Automatic | Manual | Disabled}] [-Description <string>] [-Name] <stri
ng> [-PassThru] [-DisplayName <string>] [-ComputerName <string[]>] [-confirm] [-whatif] [<CommonParameters>]
. 하지만 George는 충돌 할 때 자동 재시작 서비스를 구성하려고합니다. –
명령 실행시 오류 정보 => Set-Service : 매개 변수 이름 'starttyp e'와 일치하는 매개 변수를 찾을 수 없습니다. – George2
HawX, 시스템 시작 중에 자동 시작되도록 설정하고 싶습니다. – George2