WhatsApp: 0623684723

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

Follow
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

Requirements 
Microsoft SQL Server Compact 4.0
https://www.microsoft.com/en-US/download/details.aspx?id=17876
Microsoft Online Services Sign-In Assistant
https://www.microsoft.com/en-us/download/details.aspx?id=28177
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

$serviceName

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" 

Param(
    [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
CreateWindowsService
Have more questions? Submit a request