PowerShell script to run MIM Delta or Full Sync

Hello Guys,

Struggling with finding out easy way to run MIM Delta or Full Sync, here is the script which can help.

  • Run below command to create a directory to keep module.

          New-Item -Path "$home\MimSync" -ItemType Directory

  • Run below command to update PsModulePath

$p = [Environment]::GetEnvironmentVariable('PSModulePath','User')

$p += ";$home\"

        [Environment]::SetEnvironmentVariable('PSModulePath',$p,'User')

  • Extract the attached file to $home\MimSync folder.

Link to Module : - MimSync

  • Run below commands to start sync.

         Import-Module MimSync

         Start-MimSync

  • You will get two options whether to run delta sync or Full sync.
  • Output will look like below.

 

 

 

 

 

 

 

Please do share feedback.