Scheduled logging on

Is there any way how to logon (by finsql.exe or by IE) a particular user from command line without the system asking for a login and password? I need to perform some actions (e.g. run forms) by using standard Windows Scheduler

I solved such a problem by using WindowsScriptingHost. I start fin.exe wait a little time (15 sec.) Fill in the logonwindow with data for a special User Then in the userconfiguration in navision for this user a special StartUpForm is defined which starts the action BUT The above only works if WindowsScheduler is working in an environment with a valid user !! IT DOESN’T WORK IN THE BACKGROUND

Maybe anotheridea, is to use Windows Authentication. Create a special Windows and Navision user , for whom a Windows Authentication method will be set. Assign the form you want to run as a default form for this user. Then you just need to run finsql.exe with the Windows Sheduler, and it is enough that this special user to be logged on this particular machine.

Hi Nikola, Which Version of Navision allows a Windows Authentication for a Special User / Machine ?? My Navision 2.01 will only allow Windows Authentication for the server.

From Financials 2.65 (or was it 2.6?) and up, Windows Authentication is defined on a per user basis. You can define inside the database which specific Windows Users have access to Navision and assign them Security Roles (Security Groups in your version) just like normal database users. But you are right on your case [:(], version 2.5 and below only had a Database-wide option for this, under File → Database → Options → UnifiedLogonAllowed.

Why not just create a desktop short cut, and call that from Scheduler?

What actions is it that You want to perform?

quote:


Originally posted by David Singleton
Why not just create a desktop short cut, and call that from Scheduler?


Because shortcut isn’t able to fill in login name and password.

quote:


Originally posted by Lars Westman
What actions is it that You want to perform?


I need to start form which downloads currency rates list from bank website and insert these rates into currency rates table.

If possible You should use Application Server. If You are running on an old version of C/SIDE You should upgrade Your executables to 3.70. You don’t need to upgrade the functionality in Your database for this. You can read about Application Server if You search this forum för “Application Server” or “NAS”

Thank you for your replies, I’v tried way by using Sripting Host and it works OK.

A company in Iceland (www.Strengur.is) have a handy little executable called Autologin.exe. Alternatively… I think it may be possible through code (using cfront) though I have not tried myself.