Deploy an ArcGIS Desktop Single Use - Esri/arcgis-powershell-dsc GitHub Wiki
This workflow guides you through the first-time installation of an ArcGIS Desktop on a single machine. When the PowerShell DSC for the ArcGIS module is finished, your machine will have ArcGIS Desktop installed and licensed.
Prepare your deployment
Before you run the command to the module in PowerShell DSC, you’ll need to obtain the necessary files and resources and add them to your local machine.
Note: We recommend you use WMF 5.x for the best experience.
Log in to the machine on which you'll be installing ArcGIS Desktop. You should have PowerShell DSC and administrative authority on the machine.
You can prepare the files either through GitHub or using the PowerShell Gallery:
Option 1: Prepare your deployment using GitHub
- Clone this repository to your local machine.
- Add the "ArcGIS" modules folder to your
PsModulePath
, or copy the modules into the default PowerShell Modules folder (e.g.C:\Program Files\WindowsPowerShell\Modules
). - Log in to My Esri. Download your ArcGIS Desktop software installation files and licenses to the machine.
Option 2: Prepare your deployment using the PowerShell Gallery
- Log in to my.esri.com. Download your ArcGIS Desktop software installation files and licenses.
- Install the ArcGIS module using the command
Install-Module ArcGIS
. - Download the
SampleConfigs
files from the GitHub repository.
Edit the configuration file
- Open the Desktop-SingleUse.json file from the SampleConfigs folder on your local machine.
- Replace the placeholder variables in brackets with your deployment properties and parameters. Refer to the Variables reference page for a full list.
Install your deployment
In PowerShell DSC, run the Configure-ArcGIS
cmdlet and provide the path to the configuration file as an input parameter. Mode
, DebugSwitch
and Credential
are optional arguments.
Invoke-ArcGISConfiguration -ConfigurationParametersFile [Path to Configuration JSON File](/Esri/arcgis-powershell-dsc/wiki/Path-to-Configuration-JSON-File) -Mode [Install | InstallLicense | Uninstall ] -Credential [Config RunAs - Optional] -DebugSwitch
or
Invoke-ArcGISConfiguration [Path to Configuration json File](/Esri/arcgis-powershell-dsc/wiki/Path-to-Configuration-json-File) [Install | InstallLicense | Uninstall ] -Credential [Config RunAs - Optional] -DebugSwitch