-
Notifications
You must be signed in to change notification settings - Fork 7
ADMU Powershell Script
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.
The ADMU can be installed as a module with the Install-Module
command in PowerShell.
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.
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.