Cleanup of inactive devices, automatic reassign?

Options

Hi,

I would like to have a script to cleanup inactive devices. There is no issue creating this script but then I noticed that if I cleanup/remove a device from our console it wont automatically reassign if it later is brought online. I found a command line that seems to do this fine. My question is there any problems creating a schedule task on our clients that runs this command line on for example every startup? Our clients are forced to restarts ~1 every 4 weeks with windows updates. Users can of course restart manually more often.

"C:\Program Files (x86)\TeamViewer\TeamViewer.exe" assign --api-token=[our-token] --grant-easy-access --alias %COMPUTERNAME% --group-id [our-groupid] --reassign

I have gotten it working on a test client but would like to check so I don't cause any issues :)

Thanks

Dan