Set up the Tally connector
Install the small PowerShell script on the Tally PC so new entries reach TallyPrime by themselves every 15 minutes.
The connector is a small script that runs on the Windows computer where TallyPrime is installed. Every 15 minutes it asks the app what's new and sends it to Tally. It uses Windows PowerShell, which comes with Windows, so there's nothing to install.
You need three things: an Admin sign-in to the app, the Tally PC, and TallyPrime open with your company. Before you start, make sure you've saved your settings in Settings → TallyPrime under Setup. See Sync with TallyPrime.
Step 1: Switch on the port in TallyPrime
The connector talks to TallyPrime through a port. On the Tally PC:
- In TallyPrime, press F1 (Help), then choose Settings → Connectivity → Client/Server configuration.
- Set TallyPrime acts as to Both.
- Set the port to 9000.
- Restart TallyPrime and open your company.
Step 2: Download the connector
- In the app, go to Settings → TallyPrime. You'll see Connector on the Tally PC at the top.
- Press Set up the connector. If a key already exists, the button says Replace key and download again instead.
- Press Download tally-sync.ps1.
Step 3: Save it on the Tally PC
Save the file as C:\PowerPropertyManager\tally-sync.ps1. Create the folder PowerPropertyManager on drive C first if it isn't there. If you downloaded on another computer, copy the file over.
Your browser may warn that a PowerShell file can harm your computer, and ask you to confirm keeping it. This file is made for your company by the app, so choose to keep it.
Step 4: Test it once
- Open Command Prompt on the Tally PC.
- Paste this command and press Enter. You can copy it from the app with the Copy button.
powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:\PowerPropertyManager\tally-sync.ps1
A good result looks like this, with the time at the start of each line:
- Sent 12 to Tally, 0 not accepted. Entries went in.
- Tally is up to date. There was nothing new to send.
If you see anything else, see Tally sync problems and fixes. Back in the app, press Refresh: the status line now says when the connector last checked in.
Step 5: Run it every 15 minutes
In the same Command Prompt, paste the second command from the app. It creates a Windows scheduled task called Power Property Manager Tally sync:
schtasks /Create /TN "Power Property Manager Tally sync" /SC MINUTE /MO 15 /TR "powershell.exe -NoProfile -ExecutionPolicy Bypass -WindowStyle Hidden -File C:\PowerPropertyManager\tally-sync.ps1" /F
Entries go through only while the PC is on, you're signed in to Windows, and TallyPrime is open with your company. Anything missed is sent on the next run.
The log file
Every run adds lines to tally-sync.log in the same folder, C:\PowerPropertyManager. The scheduled task runs without a window, so the log is the place to look when something seems stuck.
Replace or remove the key
- Replace key and download again makes a new key and a new file. The old key stops working at once, so save the new file over the old one.
- Remove key switches the connector off. It stops working until you set it up again.
Replace the key if the file was shared by mistake, or if someone who had it leaves.