WhatsApp: 0623684723

6. Install the Windows Service for the Synctool to be runned automatically

Note: The synctool and support is available to our Partners. Are you a New Day at Work Partner and interested? Please contact support@newdayatwork.com

Microsoft SQL Server Compact 4.0
Microsoft Online Services Sign-In Assistant
Install PowerShell 5.0 
Install module in PowerShell 5.0:
"install-module Azure"
"install-module AzureRm"
An active Azure subscription is required.

Azure AD to Workspace 365 sync tool is not running automatically. Therefor you need create a service that runs the synctool. The script is provided in the root of the synctool folder. Execute the script and ajust the


where needed.

Keep in mind that the service is set by default to "Manual" and you need to change it to "Automatic" if you like to start the server automatically.


# If you want to install a service with another name, go to the script path and run it like: & '.\Create Environment Partner.ps1' -serviceName "YOURSERVICENAME" 

    [Parameter(Mandatory=$False)][string]$serviceName="Workspace365 AAD Sync"

if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { 
Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit 

function CreateWindowsService() {
    # Set the Executionpath
    $exePath = "$($PSScriptRoot)\AzureADToW365SyncWindowsService.exe"

    # Set the command
    $createService = "sc.exe create `"$serviceName`" binPath=`"$exePath`""
    Invoke-Expression $createService

# Call the function to create the Windows Service
Have more questions? Submit a request