スクリプトを使用した Microsoft Windows Server での Automation 360 の更新

既存のユーザー構成を維持するために、カスタマイズされたスクリプトとパラメーターを使用して Automation 360 を更新できます。

前提条件

タスクを実行するには、必要な権限と許可のある Control Room 管理者アカウントを持っている必要があります。

  • Automation 360 オンプレミス の前提条件 を検証します。
  • 次の条件と情報が揃っていること確認します。
    • Automation Anywhere Control Room インストール ファイル
    • TLS 証明書
    • ライセンス ファイル
Sample config.properties file: 参照用に、このページの最後でサンプルの config.properties ファイルを確認できます。
注: Automation 360 のサイレント インストールおよび構成を個別に実行する手順については、「スクリプトを用いた Automation 360 のサイレント インストールおよび構成 (A-People のログインが必要)」を参照してください。
注: Microsoft Windows ServerControl Room をインストールするときに使用するさまざまなパラメーターは、Microsoft Windows ServerAutomation 360 を更新するときにも適用されます。詳細については、「スクリプトを使用して Control Room を Microsoft Windows Server にインストールする」を参照してください。

Automation 360 を更新する PowerShell スクリプトを作成し、実行します。

手順

  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