|
| | |||||||
| Windows XP Discuss the Microsoft Windows XP Operating System |
| | LinkBack | Thread Tools |
| |||
| Execute program at user login as admin automatically - how? I'm looking for options to run a program *automatically* after a user logs in, *with admin rights*. The same as putting a shortcut to Startup folder or adding a registry entry under HKLM/Software/Microsoft.../run or a few similar places that are usually used for this purpose. ****but the program has to run under account with admin privileges****. This program can't be started at computer boot time (too early), so using group policy wouldn't work for me, either using startup or logon scripts. So far the only option I see is to set up a scheduled task to execute at logon time, but it doesn't quite work the way I want. Are there any other options for Windows 2000? Are there any other options for Windows XP? TIA! -- Posted via a free Usenet account from http://www.teranews.com |
| |||
| Re: Execute program at user login as admin automatically - how? On Mar 9, 7:57 am, Hombre <z...@REMOVEhotmail.com> wrote: > I'm looking for options to run a program *automatically* after a user > logs in, *with admin rights*. > The same as putting a shortcut to Startup folder or adding a registry > entry under HKLM/Software/Microsoft.../run or a few similar places that > are usually used for this purpose. > ****but the program has to run under account with admin privileges****. > > This program can't be started at computer boot time (too early), > so using group policy wouldn't work for me, either using startup or > logon scripts. > > So far the only option I see is to set up a scheduled task to execute at > logon time, but it doesn't quite work the way I want. > > Are there any other options for Windows 2000? > Are there any other options for Windows XP? > > TIA! > > -- > Posted via a free Usenet account fromhttp://www.teranews.com You can use Run these programs at user logon policy located in User Configuration\Administrative Templates\System\Logon/Logoff, see http://msdn2.microsoft.com/en-us/library/ms811978.aspx for details. To run program under local administrative context you can use run as command, see http://support.microsoft.com/kb/225035 |
| |||
| Re: Execute program at user login as admin automatically - how? "Hombre" <zzz@REMOVEhotmail.com> wrote in message news:MPG.205ab3348ad5d8d29896a1@free.teranews.com. .. > I'm looking for options to run a program *automatically* after a user > logs in, *with admin rights*. > The same as putting a shortcut to Startup folder or adding a registry > entry under HKLM/Software/Microsoft.../run or a few similar places that > are usually used for this purpose. > ****but the program has to run under account with admin privileges****. > > This program can't be started at computer boot time (too early), Too early for what? How about delaying it to run AFTER boot time? What are you really trying to accomplish? (Rather than how you think to do it.) > so using group policy wouldn't work for me, either using startup or > logon scripts. Sure it will. Run a logon script that first checks for "group" membership, such as with "IFMember". http://www.microsoft.com/downloads/d...displaylang=en > So far the only option I see is to set up a scheduled task to execute at > logon time, but it doesn't quite work the way I want. What is the problem with that? > Are there any other options for Windows 2000? > Are there any other options for Windows XP? Again, it might be best to explain the real goals and let us try to find a direct solution -- or at least understand the constraints from the start... -- Herb Martin, MCSE, MVP http://www.LearnQuick.Com (phone on web site) |
| |||
| Re: Execute program at user login as admin automatically - how? "Herb Martin" <news@learnquick.com> wrote in message news:eRNPeAlYHHA.4396@TK2MSFTNGP06.phx.gbl... > > "Hombre" <zzz@REMOVEhotmail.com> wrote in message > news:MPG.205ab3348ad5d8d29896a1@free.teranews.com. .. > > I'm looking for options to run a program *automatically* after a user > > logs in, *with admin rights*. > > The same as putting a shortcut to Startup folder or adding a registry > > entry under HKLM/Software/Microsoft.../run or a few similar places that > > are usually used for this purpose. > > ****but the program has to run under account with admin privileges****. > > > > This program can't be started at computer boot time (too early), > > Too early for what? How about delaying it to run AFTER boot time? > > What are you really trying to accomplish? (Rather than how you think > to do it.) > > > so using group policy wouldn't work for me, either using startup or > > logon scripts. > > Sure it will. Run a logon script that first checks for "group" membership, > such as with "IFMember". > > http://www.microsoft.com/downloads/d...6d7-815e-4fa0- 9043-4e4635ccd417&displaylang=en > > > So far the only option I see is to set up a scheduled task to execute at > > logon time, but it doesn't quite work the way I want. > > What is the problem with that? > > > Are there any other options for Windows 2000? > > Are there any other options for Windows XP? > > Again, it might be best to explain the real goals and let us try to find a > direct > solution -- or at least understand the constraints from the start... > > -- > Herb Martin, MCSE, MVP > http://www.LearnQuick.Com > (phone on web site) > Thank you for the two replies. I did not state that the user account is not a member of Administrators group (i.e. used for day-to-day work) (obviously, otherwise Startup or Run registry key would work with no problem). The program I'm trying to execute is a hardware monitor (monitor cpu temperature and so on). It needs some rights that members of User group do not have in Windows 2000. Maybe there is an easy way to add these rights to Users group, and that will solve the immediate problem. But even in that case, I guess the question I asked is useful for other purposes. The suggestions so far will not work for me. Run As will not work because it does not achieve *automatic* execution. I'd have to manually type in the password in that case (I know the password BTW). System-wide logon script does not work because the program does not start correctly. It needs to interact with user desktop and I guess that can only happen after the user logs in. User logon script doesn't work because the user is not a member of Administrators group. Any other suggestions? TIA! -- Posted via a free Usenet account from http://www.teranews.com |
| |||
| Re: Execute program at user login as admin automatically - how? "Hombre" <zzz@REMOVEhotmail.com> wrote in message news:45f18b36$0$16396$88260bb3@free.teranews.com.. . > "Herb Martin" <news@learnquick.com> wrote in message > news:eRNPeAlYHHA.4396@TK2MSFTNGP06.phx.gbl... >> Sure it will. Run a logon script that first checks for "group" > membership, >> such as with "IFMember". >> >> > http://www.microsoft.com/downloads/d...6d7-815e-4fa0- > 9043-4e4635ccd417&displaylang=en >> >> > So far the only option I see is to set up a scheduled task to execute >> > at >> > logon time, but it doesn't quite work the way I want. >> >> What is the problem with that? > Thank you for the two replies. > I did not state that the user account is not a member of Administrators > group (i.e. used for day-to-day work) > (obviously, otherwise Startup or Run registry key would work with no > problem). Then what identifies this account? What about it is distinctive? You said logs in with "admin rights" -- which rights specifically? You could always check for the ACTUAL user name if it is only one account and it wouldn't matter what groups it was contained within. Or you could make up an "artificial group" and place this (and other users') account in this group so that checking is possible based on a group. > The program I'm trying to execute is a hardware monitor (monitor cpu > temperature and so on). > It needs some rights that members of User group do not have in Windows > 2000. > Maybe there is an easy way to add these rights to Users group, and that > will > solve the immediate problem. > But even in that case, I guess the question I asked is useful for other > purposes. IFMember or checking the user name explicitly are both trivial solutions to everything you have asked so far. Running it as part of the system should as a logon script should work too based on what you have so far offered. > The suggestions so far will not work for me. Why not? IfMember GroupThatChecksHardware works just fine. Or If %username%==UserForHardwareCheck > Run As will not work because it does not achieve *automatic* execution. > I'd have to manually type in the password in that case (I know the > password > BTW). Batch files can be submitted under arbitrary user names (by actual admins) with the credentials securely stored in the registry of the machine. > System-wide logon script does not work because the program does not start > correctly. Why not? Does it interact with the Desktop? That can be overcome usually or perhaps a different (command line) program used. > It needs to interact with user desktop and I guess that can only happen > after the user logs in. Not necessarily. Even services can interact with desktop under some situations if properly set up. > User logon script doesn't work because the user is not a member of > Administrators group. Scheduled task with a particular user and the flags set to interact with desktop. It sounds like what you are REALLY trying to do is to run an interactive task while one user is logged on, but run it as another particular user. You can save a lot of your time (and ours) if you specify the actual goals rather than some partially complete intermediate idea.... -- Herb Martin, MCSE, MVP http://www.LearnQuick.Com (phone on web site) |
| |||
| Re: Execute program at user login as admin automatically - how? "Hombre" <zzz@REMOVEhotmail.com> wrote in message news:45f18b36$0$16396$88260bb3@free.teranews.com.. . > "Herb Martin" <news@learnquick.com> wrote in message > news:eRNPeAlYHHA.4396@TK2MSFTNGP06.phx.gbl... > > > > "Hombre" <zzz@REMOVEhotmail.com> wrote in message > > news:MPG.205ab3348ad5d8d29896a1@free.teranews.com. .. > > > I'm looking for options to run a program *automatically* after a user > > > logs in, *with admin rights*. > > > The same as putting a shortcut to Startup folder or adding a registry > > > entry under HKLM/Software/Microsoft.../run or a few similar places that > > > are usually used for this purpose. > > > ****but the program has to run under account with admin privileges****. > > > > > > This program can't be started at computer boot time (too early), > > > > Too early for what? How about delaying it to run AFTER boot time? > > > > What are you really trying to accomplish? (Rather than how you think > > to do it.) > > > > > so using group policy wouldn't work for me, either using startup or > > > logon scripts. > > > > Sure it will. Run a logon script that first checks for "group" > membership, > > such as with "IFMember". > > > > > http://www.microsoft.com/downloads/d...6d7-815e-4fa0- > 9043-4e4635ccd417&displaylang=en > > > > > So far the only option I see is to set up a scheduled task to execute at > > > logon time, but it doesn't quite work the way I want. > > > > What is the problem with that? > > > > > Are there any other options for Windows 2000? > > > Are there any other options for Windows XP? > > > > Again, it might be best to explain the real goals and let us try to find a > > direct > > solution -- or at least understand the constraints from the start... > > > > -- > > Herb Martin, MCSE, MVP > > http://www.LearnQuick.Com > > (phone on web site) > > > > Thank you for the two replies. > I did not state that the user account is not a member of Administrators > group (i.e. used for day-to-day work) > (obviously, otherwise Startup or Run registry key would work with no > problem). > The program I'm trying to execute is a hardware monitor (monitor cpu > temperature and so on). > It needs some rights that members of User group do not have in Windows 2000. > Maybe there is an easy way to add these rights to Users group, and that will > solve the immediate problem. > But even in that case, I guess the question I asked is useful for other > purposes. > > The suggestions so far will not work for me. > > Run As will not work because it does not achieve *automatic* execution. > I'd have to manually type in the password in that case (I know the password > BTW). > > System-wide logon script does not work because the program does not start > correctly. > It needs to interact with user desktop and I guess that can only happen > after the user logs in. > > User logon script doesn't work because the user is not a member of > Administrators group. > > Any other suggestions? > > TIA! > > -- > Posted via a free Usenet account from http://www.teranews.com > You can use KenW's runas option if you use a variant that allows you to supply the password: http://www.joeware.net/win/free/tools/cpau.htm www.robotronic.de/runasspcEn.html (takes the password from an encrypted file) You need to be very careful to prevent an obervant user from hijacking your script and using it for his own ends. |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to set Admin password from an admin user account | ToddAndMargo | Windows Vista | 2 | 01-04-2009 09:06 AM |
| execute shell script as another user | jimi | Linux | 1 | 12-13-2007 11:41 AM |
| Wat is the difference between Built it Admin and Admin User | santosh | Windows Vista | 3 | 05-10-2007 04:20 PM |
| Access 2002 FE with SQL Server 2k BE - Login failed for user Admin | fuzzyocelot | Microsoft Office | 2 | 04-02-2007 10:15 AM |
| execute program before get into windows. | max | Windows XP | 3 | 02-23-2007 01:46 PM |
| New To Technology Questions? | Do You Need Help with Your Computer or Device? | Do You Need Help with this site? |