Auto login logout Script

Home Forums Scripting General Scripting Auto login logout Script

This topic contains 5 replies, has 3 voices, and was last updated by  japie10 1 year, 6 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts

  • naresh.ynn
    Member
    #167056

    HI,

    can some one please help me to write script for below requirements.

    we have one internal application and below is the scenarios.

    1. Login application with username and password.
    2.if working fine the log off the application.
    3. if not working need to send mail for particular user.
    4. this has to repeat every 15 min.

    application is running in windows server. please help me.


    Ossian
    Moderator
    #191689

    Really we need more details about the application to be able to help. Steps 3-4 are easy, a scheduled task using PowerShell or a CMD file, but logging onto the application is harder because we don’t know about it

    For example, can it be launched from a command line with credentials, or is it a case of clicking on a dialog and typing?

    Have you asked the application vendors about this – they would probably have better ideas than we do?
    Is there some other way of checking if the application is running, for example a service?


    japie10
    Member
    #385700

    Hai Ossian,

    thanks for reply. it will be better launching from a command line with credentials. application is businessline1 sap application fro small business. they are not providing these details.

    please help.


    Ossian
    Moderator
    #191691

    Sorry, SAP is something about which I (thankfully) know nothing! I am surprised that they will not support you, but do they have their own support forums?


    japie10
    Member
    #385701

    Hi Ossian,

    may be i am not able to explain properly…

    just try script for below scenario.

    open web browser with one link and login with credentials. if login successful then logout. if not send mail to particular mail id.

    please try for thus scenario.


    Ossian
    Moderator
    #191694

    No, you didn’t mention the browser at all previously. From a quick google, adapting the following should help you:
    Open IE and log in
    https://gallery.technet.microsoft.com/scriptcenter/Open-Internet-Explorer-e4f8ae4b
    (note you will need to get the correct names for the elements in your login page)
    Send email:
    Lots of choices – https://www.google.co.uk/search?q=script+to+open+browser+and+log+in&sourceid=ie7&rls=com.microsoft:en-GB:IE-Address&ie=&oe=&gfe_rd=cr&ei=It1AWf7wKtPHXquEjKAG#q=script+to+send+email+automatically&spf=1497423231987

    Obviously all this will need some tweaking and adapting to your circumstances, but it should get you there

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.