You can run a silent install of ShareGate Migrate with PowerShell or the command prompt. This action can be helpful to deploy ShareGate Migrate to your users, run the installer as an admin, troubleshoot installation failures, and more.
Installation steps
- Download the latest ShareGate Migrate 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 Migrate install file. - To install ShareGate Migrate for the current user only, use the following command line:
msiexec /i ShareGate.msi /q SHAREGATEINSTALLSCOPE=PERUSER RESTARTEDASADMIN=1
- To install ShareGate Migrate 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.