Solved

Trigger a bat file

Posted on 2015-01-08
13
105 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 77

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 77

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 77

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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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 77

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 77

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 77

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I hope this helps those who have been battling the SanDisk / U3 problem for a while. For anyone that is running Windows 7 64bit and is receiving and searching the internet for the “Windows Error: Windows has allocated a drive letter to the U3 dri…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
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.

911 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

19 Experts available now in Live!

Get 1:1 Help Now