로그인 스크립팅 - 매개 변수
다음 매개변수를 사용할 수 있습니다.

XProtect Smart Client이(가) 연결하는 관리 서버의 URL을 참조합니다.
다음 예는 XProtect Smart Client 로그인 창의 서버 주소 필드에 http://ourserver 가 입력된 상태를 보여줍니다.
Client.exe -ServerAddress="http://ourserver"
기본 인증 유형은 Windows 인증(현재 사용자) 입니다. AuthenticationType 매개변수(다음 섹션에 설명)를 사용하여 기본 인증 유형을 변경하지 않는 한 로그인 창의 사용자 이름 필드에 현재 Windows 사용자의 이름이 자동으로 표시됩니다.

지정된 사용자 이름을 나타냅니다.
다음 예는 XProtect Smart Client 로그인 창의 서버 주소 필드에 http://ourserver 가 입력되고 사용자 이름 필드에 Tommy 가 입력된 상태를 보여줍니다.
Client.exe -ServerAddress="http://ourserver" -UserName="Tommy"
이 매개변수는 Windows 인증 또는 기본 인증 에만 관련이 있습니다. AuthenticationType 매개변수를 사용하여 사용할 인증 방식을 제어할 수 있습니다.

지정된 암호를 나타냅니다.
다음 예는 XProtect Smart Client 로그인 창의 서버 주소 필드에 http://ourserver 가 입력되고 사용자 이름 필드에 Tommy 가 입력되고, 암호 필드에 T0mMy5Pa55w0rD 가 입력된 상태를 보여줍니다:
Client.exe -ServerAddress="http://ourserver" -UserName="Tommy" -Password="T0mMy5Pa55w0rD"
이 매개변수는 Windows 인증 또는 기본 인증 에만 관련이 있습니다. AuthenticationType 매개변수를 사용하여 사용할 인증 방식을 제어할 수 있습니다.

XProtect Smart Client의 3가지 인증 방식 즉, Windows 인증(현재 사용자) (시작 스크립트에서는 WindowsDefault 라고 함), Windows 인증 (시작 스크립트에서는 Windows 라고 함) 또는 기본 인증 (시작 스크립트에서는 Simple 이라고 함) 중 하나를 나타냅니다.
다음 예는 XProtect Smart Client 로그인 창의 서버 주소 필드에 http://ourserver 가 입력되고, 인증 필드에 기본 인증 이 선택되고, 사용자 이름 필드에 Tommy 가 입력되고, 암호 필드에 T0mMy5Pa55w0rD (별표로 표시됨)가 입력된 상태를 보여줍니다:
Client.exe -ServerAddress="http://ourserver" -UserName="Tommy" -Password="T0mMy5Pa55w0rD" -AuthenticationType="Simple"
Windows 인증 을 사용하는 경우 이 예는 다음과 같이 됩니다.
Client.exe -ServerAddress="http://ourserver" -UserName="Tommy" -Password="T0mMy5Pa55w0rD" -AuthenticationType="Windows"
Windows 인증(현재 사용자) 을 사용하는 경우 UserName 및 Password 매개변수가 필요하지 않으며 이 예는 다음과 같이 됩니다.
Client.exe -ServerAddress="http://ourserver" -AuthenticationType="WindowsDefault"

.scs 스크립트(XProtect Smart Client 제어 시 대상으로 지정된 스크립트 유형)의 전체 경로를 나타냅니다.
다음 예에서는 .scs 스크립트를 사용하여 로그인합니다.
Client.exe -Script=c:\startup.scs
현재 Windows 사용자를 통해 http://ourserver 에 로그인하는 데 사용되는 .scs 스크립트의 예:
<ScriptEngine>
<Login>
<ServerAddress>http://ourserver</ServerAddress>
<AuthenticationType>WindowsDefault</AuthenticationType>
</Login>
</ScriptEngine>
XProtect Smart Client 의 여러 함수 호출(함수 호출 목록 보기 참조)을 사용하여 .scs 스크립트에 추가 기능을 추가할 수 있습니다. 다음 예에서는 이전 예의 .scs 스크립트가 XProtect Smart Client 응용 프로그램을 최소화하는 행이 추가되었습니다.
<ScriptEngine>
<Login>
<ServerAddress>http://ourserver</ServerAddress>
<AuthenticationType>WindowsDefault</AuthenticationType>
</Login>
<Script>SCS. Application.Minimize();</Script>
</ScriptEngine>

올바른 매개변수 형식은 다음과 같습니다.
{-,/,--}param{ ,=,:}((".')value(",'))
예:
-UserName Tommy
--UserName Tommy /UserName:"Tommy" /UserName=Tommy -Password 'Tommy'