0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PowerShellでArcGIS Web Adaptorのインストールを自動化してみた

Last updated at Posted at 2018-05-11

インストーラーの解凍だけはGUI必須だけど他は自動化した.

自動化した処理

  • ArcGIS Web Adaptor 10.5をインストールする
  • Web Adaptorを構成する

インストーラーを解凍する

Web_Adaptor_for_Microsoft_IIS_105_ja_155426.exeを実行する.
解凍先を適宜設定する.
「今すぐプログラムを実行」のチェックを外すこと.

インストーラーを実行する

  • VDIR_NAMEにArcGISのWeb Adaptorの名前を設定する.
  • VDIR_NAMEに「arcgis」を指定した場合, Web Adaptorには「 http://<gis_server_name>/arcgis/webadaptor 」で接続できる.
$arcGISWebAdaptorName = "arcgis"
$arcGISWebAdaptorSetupExe = "E:\ArcGISInstaller\WebAdaptorIIS_Japanese\setup.exe"
$arcGISWebAdaptorSetupArg = "/qn VDIR_NAME={0}" -f $arcGISWebAdaptorName

Start-Process -FilePath $arcGISWebAdaptorSetupExe -ArgumentList $arcGISWebAdaptorSetupArg -Verb runas -Wait

Web Adaptorを構成する

  • Web Adaptorを構成することで「 http://<gis_server_name>/<webadaptor_name>/rest/services 」からArcGIS Serverのサービスを呼び出すことが出来るようになる.
$arcGISWebAdaptorName = "arcgis"
$webAdaptorURL = "http://<gis_server_name>/{0}/webadaptor" -f $arcGISWebAdaptorName
$serverURL = "http://<gis_server_name>:6443"
$admin_userName = "someone"
$admin_password = "pass"
$configureWebAdaptorExe = "C:\Program Files (x86)\Common Files\ArcGIS\WebAdaptor\IIS\Tools\ConfigureWebAdaptor.exe"
$configureWebAdaptorArg = "/m server /w {0} /g {1} /u {2} /p {3} /a true" -f $webAdaptorURL, $serverURL, $admin_userName, $admin_password

Start-Process -FilePath $configureWebAdaptorExe -ArgumentList $configureWebAdaptorArg -Verb runas -Wait

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?