The easiest way is to follow the ssh-host-config script in
creating a special account:
net user cron_server <passwd> /add /yes
net localgroup <administrators_group_name> cron_server /add
editrights -a SeAssignPrimaryTokenPrivilege -u cron_server
editrights -a SeCreateTokenPrivilege -u cron_server
editrights -a SeIncreaseQuotaPrivilege -u cron_server
editrights -a SeServiceLogonRight -u cron_server
mkpasswd -l -u cron_server >> /etc/passwd
For security reasons:
editrights -a SeDenyInteractiveLogonRight -u cron_server
editrights -a SeDenyNetworkLogonRight -u cron_server
editrights -a SeDenyRemoteInteractiveLogonRight -u cron_server
And then create a cron service using that account:
cygrunsrv -I cron -p /usr/sbin/cron -a -D -u cron_server -w <passwd>