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
Create a .BAT or .CMD file.
Add the following script in the file:
@echo off::Check if inSync config is under C:\inSync4 or C:\ProgramData\Druva\inSync4\usersIF 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:Activationfindstr /s /c:"WRUSER =" %LOC%\*.cfg | findstr "@" >> "C:\Windows\Temp\inSyncReactivate.log" 2>&1IF %ERRORLEVEL% EQU 0 (echo Already Activated) ELSE (echo Not Activated):ENDSave the file.
Open Command Prompt with elevated rights (run as administrator).
Run the script file and redirect the output to a text file:
Example -
Open the text file to view the activation status which should display the following -
Already activated
=== MAC ===
Procedure to create the script
Create a .sh file.
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
