You can run a silent install of the ShareGate migration tool with PowerShell or the command prompt. This action can be helpful to deploy the ShareGate migration tool to your users, run the installer as an admin, troubleshoot installation failures, and more.
Installation steps
- Download the latest ShareGate migration tool installer to your drive.
- Click on the Start menu in Windows.
- Search Command Prompt.
- Open Command Prompt.
Note: You have to run the script in an elevated session. The usual method is to right-click on the application (Command Prompt or PowerShell) and select Run as administrator in the dropdown to start Command Prompt as an admin. - Access the installer's location (MSI file) with the following command:
cd %UserProfile%\Downloads
Note: CD stands for Change Directory. If your install file is not in your Downloads folder, you will have to adjust the path to point to the folder containing the ShareGate migration tool install file. - To install the ShareGate migration tool for the current user only, use the following command line:
msiexec /i ShareGate.msi /q SHAREGATEINSTALLSCOPE=PERUSER RESTARTEDASADMIN=1
- To install the ShareGate migration tool for all users, use the following command line:
msiexec /i ShareGate.msi /q SHAREGATEINSTALLSCOPE=PERMACHINE RESTARTEDASADMIN=1 ALLUSERS=1
Notes:
- Make sure you update the file's name to reflect the exact name of the install file you downloaded in your script. For example, replace ShareGate.msi with ShareGate.1.2.3.msi in the script if that is the name of the install file you downloaded.
- You can run the scripts with PowerShell as well. Check this article to set the location of the MSI file, and then you can run the same command line.