Solved

Trigger a bat file

Posted on 2015-01-08
13
110 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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

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
 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Hi Friends, These registry tweaks will help you optimizing your Windows 7 system for any VDI. This will improve the machine performanance and can be used on normal systems also. These are few registry tweaks which will add value by enhancing the …
A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
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…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

839 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