GET-IT: TEAMS DAY | 1-Day Free Virtual Conference all about Teams. Here on Petri.com - 8/12/20 GET-IT: TEAMS DAY - 8/12/20

Handling incorrect credentials in a drive mapping .hta script

Home Forums Scripting General Scripting Handling incorrect credentials in a drive mapping .hta script

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    Vapor
    Member
    #162432

    Our instructors need access to share drives when they’re in computer labs, but the labs log in as a generic lab user. So I’ve barely modified various scripts from around the web to create an .hta script that prompts a user for their credentials and then maps their network drives.

    It works well, except when the user enters their credentials incorrectly. If that happens, things just get ugly – unresponsive window, hanging, etc.

    Ideally what would happen is that the user would immediately get a prompt stating invalid username / password, and asked to reenter.

    Can anyone offer any ideas on how to modify this to make that happen? (Also, I modifed 2 URL’s in the script so I could post it here since I have less than 5 posts – in bold)



    Connect Network Drives




    Key Account

      

    Password

      



     

     





    [/CODE][CODE]



    Key Account

      

    Password

      


     

     





    [/CODE]

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.