[SOLVED] Scheduled AD Sync job


New Member
Jul 27, 2023
Hi, I am running Proxmox 7.4-16 , and I have successfully linked this to Active Directory.

I wanted to know if it is possible to use a scheduler so that for example every 1 hour, the command "pveum realm sync <realm>" is run.

This would allow any changes in AD to automatically be picked up in Proxmox.

If possible, which file will I need to edit to include this command ?
Thanks in advance.

this is easily possible using cron.
Run crontab -e as root, which should open an editor (probably nano or vim) with the crontab.

At the end, add the following line (replacing <realm> with the actual name of course):
0 * * * * /usr/sbin/pveum realm sync <realm>
After that, just save and exit.

That will run the command each hour.
crontab.guru is a good website for getting the cron syntax right.


The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!