Solved

Trigger a bat file

Posted on 2015-01-08
13
112 Views
Last Modified: 2015-01-14
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
Comment
Question by:WellingtonIS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 6
13 Comments
 
LVL 78

Expert Comment

by:arnold
ID: 40538463
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
 

Author Comment

by:WellingtonIS
ID: 40538472
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
 
LVL 78

Expert Comment

by:arnold
ID: 40538504
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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 

Author Comment

by:WellingtonIS
ID: 40538506
No Imprivata is just like a virtual shared workstation.  Have you ever  used it?
0
 
LVL 78

Expert Comment

by:arnold
ID: 40538518
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
 

Author Comment

by:WellingtonIS
ID: 40538546
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
 
LVL 24

Expert Comment

by:Eirman
ID: 40538551
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
 
LVL 78

Expert Comment

by:arnold
ID: 40538583
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
 

Author Comment

by:WellingtonIS
ID: 40538588
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
 
LVL 78

Expert Comment

by:arnold
ID: 40538620
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
 

Accepted Solution

by:
WellingtonIS earned 0 total points
ID: 40538627
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
 
LVL 78

Expert Comment

by:arnold
ID: 40538643
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
 

Author Closing Comment

by:WellingtonIS
ID: 40548532
I figured it out myself by accident
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question