will Teamviewer auto login?

I have a problem to auto login since i am using VPN at work, and the VPN take a while to auto login. thyan the Teamviewer will not auto login due to the fail on first attemp, and once a while i need to remote restart the PC and teamviewer will not login is my problem, can you tell me where i can find the setting for it so it will auto login if fail on the first try?