Skip to content

ADMU Powershell Script

Joe Workman edited this page Jun 26, 2024 · 37 revisions

The ADMU may be invoked through a PowerShell session. The Latest versions of the ADMU are uploaded to the PowerShell Gallery after each release is published.

Install the JumpCloud ADMU from the PowerShell Gallery

The ADMU can be installed as a module with the Install-Module command in PowerShell.

Example Usage

The following example parameter set will migrate domain user JCADB2\bobfay to a local user bob.fay, install the JumpCloud Agent, Bind the JumpCloud User bob.fay to the system. leave the domain and finally reboot.

Install-Module -Name JumpCloud.ADMU
Start-Migration -SelectedUserName 'JCADB2\bobfay' -JumpCloudUserName 'bob.fay' -TempPassword 'Temp123!Temp123!' -LeaveDomain $true -ForceReboot $true -InstallJCAgent $true -JumpCloudConnectKey 'ConnectKEY' -AutobindJCUser $true -JumpCloudAPIKey 'APIKEY'

Refer to the parameter documentation for a complete explanation of each setting and all configurable options.

Import Manually

The PowerShell script can be manually downloaded.

  • Download the latest source code .zip from the JCADMU Release page.
  • Unzip the file on a local computer
  • Load the Start-Migration.ps1 file into the local PowerShell session by dot sourcing the "start-migration" script.
. "\pathTo\jumpcloud-ADMU\jumpcloud-ADMU\Powershell\Start-Migration.ps1"
  • Run the 'Start-Migration' command in the session.
Start-Migration -SelectedUserName 'JCADB2\bobfay' -JumpCloudUserName 'bob.fay' -TempPassword 'Temp123!Temp123!' -LeaveDomain $true -ForceReboot $true -InstallJCAgent $true -JumpCloudConnectKey 'ConnectKEY' -AutobindJCUser $true -JumpCloudAPIKey 'APIKEY'

This would migrate domain user JCADB2\bobfay to a local user bob.fay, install the JumpCloud Agent, Bind the JumpCloud User bob.fay to the system. leave the domain and finally reboot.