Skip to main content

How to check activation of inSync Client on user devices

This article applies to:

  • Product edition: inSync Cloud

  • Applicable OS: Windows

Overview

Use the script in this article to check if inSync Client is activated on any Windows & MAC devices.

=== Windows ===

Procedure to create the script

  1. Create a .BAT or .CMD file.

  2. Add the following script in the file:

    @echo off

    ::Check if inSync config is under C:\inSync4 or C:\ProgramData\Druva\inSync4\users

    IF EXIST C:\inSync4 (set LOC=C:\inSync4) ELSE (set LOC=C:\ProgramData\Druva\inSync4\users)

    ::ECHO %LOC%

    ::PAUSE

    ::Looks for activated user in the cfg

    :Activation

    findstr /s /c:"WRUSER =" %LOC%\*.cfg | findstr "@" >> "C:\Windows\Temp\inSyncReactivate.log" 2>&1

    IF %ERRORLEVEL% EQU 0 (echo Already Activated) ELSE (echo Not Activated)

    :END

  3. Save the file.

  4. Open Command Prompt with elevated rights (run as administrator).

  5. Run the script file and redirect the output to a text file:

    Example -

    runcmd.jpg
  6. Open the text file to view the activation status which should display the following -
    Already activated
    ​​​

=== MAC ===

Procedure to create the script

  1. Create a .sh file.

  2. Add the below script.

#!/bin/bash

CFG_PATH="$HOME/Library/Application Support/inSync"

LOG_FILE="/tmp/inSyncReactivate.log"

> "$LOG_FILE"

find "$CFG_PATH" -name "*.cfg" -exec grep -H "WRUSER =" {} \; | grep "@" > "$LOG_FILE"

if [ -s "$LOG_FILE" ]; then

echo "Already Activated"

else

echo "Not Activated"

fi

3. Save the file.

4. Open Terminal on the mac device.

5. Make the script executable.

chmod +x Filename.sh

6. Run the script.

bash Filename.sh

Did this answer your question?