스크립트를 사용하여 Automation 360Microsoft Windows Server 업데이트

기존 사용자 구성을 유지하기 위해 매개변수가 있는 사용자 지정된 스크립트를 사용하여 Automation 360을(를) 업데이트할 수 있습니다.

전제 조건

태스크를 수행하려면 필요한 권한을 가진 Control Room 관리자 계정이 있어야 합니다.

Sample config.properties file: 참조용으로 페이지 끝에서 config.properties 샘플 파일을 찾을 수 있습니다.
주: 별도로 Automation 360의 자동 설치 및 구성을 수행하는 방법에 대한 지침은 Silent installation and configuration of Automation 360 using scripts (A-People login required) 항목을 참조하십시오.

PowerShell 스크립트를 만들고 실행하여 Automation 360을(를) 업데이트합니다.

프로시저

  1. 필요한 매개변수로 PowerShell 스크립트를 만듭니다.
    다음은 Automation 360 업그레이드용 PowerShell 스크립트 샘플입니다.
    # Script Begins
    # It fetches Data from config.properties file present under the same directory level
    
    $PropertyFilePath = 'C:\script\config.properties'
    $rawProperties = cat $PropertyFilePath
    $propertiesToConvert = ($rawProperties -replace '\\' ,'\\') -join
    [Environment]:: NewLine;
    $properties=ConvertFrom-StringData $propertiesToConvert
    $env:SEE_MASK_NOZONECHECKS = 1
    
    # Setting up the logger and InstallerRoot Directory
    
    $baseLogFilePath=$properties.baseLoggingDirectory
    $logFilePath=$baseLogFilePath+'Express_CR_Installation_Scenario1.txt'
    $baseInstallerPath=$properties.baseInstallerDirectory
    $installer_name_regex=$properties.installerNameRegex
    
    # Logging Begins
    
    Start-Transcript -Path $logFilePath -Append -IncludeInvocationHeader
    
    $binary = Get-ChildItem $baseInstallerPath | Where-Object { $_.FullName -imatch $installer_name_regex }
    $a = $binary.FullName
    $final_commandline = " /update /s /v/qn /v""/L*v CR_Onprem_Installationlog_Scenario1.txt"""
    
    # Recording the Start Time
    Get-Date -Format g
    
    # Invoking the Installer here
    $processdetail = (Start-Process -FilePath $a -ArgumentList $final_commandline -Wait -Passthru).ExitCode
    
    # Recording the End  Time
    Get-Date -Format g
    
    
    Stop-Transcript
    
  2. 옵션: 요구 사항에 따라 매개변수를 포함하도록 스크립트를 사용자 지정합니다.
  3. 스크립트를 설치 서버에 저장합니다.
  4. 관리자로 설치 서버에 로그인합니다.
  5. 관리자 모드에서 PowerShell을 시작합니다.
  6. 다음을 실행합니다.
    Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
    .\install.ps1
    주: 설치 스크립트가 실행되는 폴더에 자동 설치 로그가 저장됩니다. 예를 들어 스크립트를 C:\Silent Install에서 실행한 경우 로그가 C:\Silent Install 폴더에 저장됩니다.
  7. 다음을 확인합니다.

config.properties 파일의 예

# Properties utilized across all Scenarios

# Default/Express Mode Params

baseLoggingDirectory=C:\script\logs\
baseInstallerDirectory=C:\script\
installerNameRegex=AutomationAnywhereEnterprise_A2019