2009-08-02 4 views

답변

4

입니다 :

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>] 
+2

. 하지만 George는 충돌 할 때 자동 재시작 서비스를 구성하려고합니다. –

+0

명령 실행시 오류 정보 => Set-Service : 매개 변수 이름 'starttyp e'와 일치하는 매개 변수를 찾을 수 없습니다. – George2

+0

HawX, 시스템 시작 중에 자동 시작되도록 설정하고 싶습니다. – George2

관련 문제