• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 124
  • Last Modified:

Trigger a bat file

We use Single Sign on (Imprivata) so my users don't actually login to the machines.  There is a generic account in the background and the users sign in to imprivata.  Anyone who has ever used this knows what I mean.  I'm trying to configure a bat file to run when the user logs into imprivata.  I have no way to trigger this.  It's a simple files which open and closes a jpg file.  I tried startup but it's not really starting up and I tried to configure a task in task scheduler but no luck there either.  Is there any way to accomplish this?  I only need this to bat to run as the user is logging into imprivata.  the machine doesn't get restarted.
0
WellingtonIS
Asked:
WellingtonIS
  • 6
  • 6
1 Solution
 
arnoldCommented:
no, but you can disable auto-login and use startup.
using an empty password for the common user account. The requirement is that when a user is done, they must logoff.
a new user will click on the user to login the bat files run, they login into the app.
0
 
WellingtonISAuthor Commented:
I can't do that either because imprivata works with a multiuser function and the machine needs to be logged in with a generic account for that to work
0
 
arnoldCommented:
Do they have to launch the imprivata application since I've not used this application, a search for imprivata returns a company site that suggests it has an option to specify which applications to launch when the user logs in, any reason you can run a bat if only one application can be launched. The bat will do what you want and then launch the application the user needs to work with.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
WellingtonISAuthor Commented:
No Imprivata is just like a virtual shared workstation.  Have you ever  used it?
0
 
arnoldCommented:
no, that is why I am asking what options you have.
When you login into imprivata, what happens?
is imprivata.com the vendor?

Since it is a Virtual shared workstation, whatever script/bat file you want to run has to exist within the imprivata workstation.
Presumably it behaves/limits different users based on a pre-configured set of rights/privileges.
0
 
WellingtonISAuthor Commented:
Basically you're correct however, I'm not sure about my options.  All I know is it creates a virual desktop and the rights are configured on the pc not the user.  I think it takes the generic rights.
0
 
EirmanCommented:
Thinking laterally ....

Could you create a bat file (or a script) that signs users into imprivata?

If you can, then add what you want to it .... just open and close your jpg or trigger a bat file.
0
 
arnoldCommented:
As I said, I've not used it.  But it does not sound right.
A generic user is used to open the workstation for use.
Imprivata when loged in would restrict the loged in user to a set of rights specified in there.
i.e. Presumably this is a medical type of environment. So a nurse might be able to see certain things, and add certain things. But only a doctor could add perscription/treatment directives.
If imprivata has to have someone to differentiate whether the logged in individual is a doctor, a nurse, an aid, a social worker, an administrator, etc.

I do not believe that if you have three computer station, one has to be designated for use by doctors, another by nurses and a third by .........

Lets try this, upon using the impravata login, what happens? does it go into the background at which point there is an application that is either running or needs to be started?
0
 
WellingtonISAuthor Commented:
It actually opens the generic desktop however when the user opens the programs they open automatically with the user name and password for that specific user.  But the basic desktop is the generic account.
0
 
arnoldCommented:
Ok, given the user has to open programs, presumably there is a shortcut. one way is to alter the function of the shortcut or perhaps add an

lets say the current target of a shortcut is "c:\program files\applicationname\runapplication.exe"
changing it to
cmd /c runmybatfile.bat && "c:\program files\applicationname\runapplication.exe"
will get you want you want the running of your bat file.
0
 
WellingtonISAuthor Commented:
OMG I figured it out!  The workstation is basically locked.  So you can schedule a task to run when the workstation unlocks!  It tried this and it works!
0
 
arnoldCommented:
Wouldn't the same user may login sequentially or that is fine with you.
i.e. user loged into imprivata steps away for 5/10 minutes, presumably imprivata will lock the station for security purposes. this both allows a new user to access as well as when the prior user returns they can resume their session.

Glad you found a method.
0
 
WellingtonISAuthor Commented:
I figured it out myself by accident
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 6
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now