Solved

Trigger a bat file

Posted on 2015-01-08
13
102 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
  • 6
  • 6
13 Comments
 
LVL 76

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 76

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
 

Author Comment

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

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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 23

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 76

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 76

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 76

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I found out last night windows update has a problem regarding 4 latest updates that fail.  The way to get all 4 them installed is install sp1 first and restart then one by one with a resart in between as they fail every time if all the four updates …
So many times I have seen the words written in a question "if only I could show you" or " I know how hard it is for you since you can't see it" in any zone. That has inspired me to write about this tool in windows 7 called "Problem Steps Recorder…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now