RunAsCurrentUser (application not starting on remote system?)
I'm trying to use RunAsCurrentUser and psexec to start Outlook.exe on a remote system as the user that is currently logged in.
Here is what I've tried so far:
1. Downloaded RunAsCurrentUser from here: http://software.bigfix.com/download/bes/util/RunAsCurrentUser-2.0.3.1.exe (renamed it to RunAsCurrentUser.exe and copied it to C:\Downloads on the remote system)
2. Ran the following commands locally to try and start Outlook.exe on the remote system.
psexec \\SYSTEMNAME cmd
cd C:\Downloads
RunAsCurrentUser.exe "C:\Program Files\Microsoft Office\Office14\OUTLOOK.EXE"
However, Outlook.exe does not start on the remote machine.
Any ideas?
Answers (5)
Comments:
-
The correct path for Outlook.exe? In general, I'm pretty sure "Program Files" is the 64 bit directory and "Program Files (x86)" is the 32 bit directory. But I checked, yes, and Outlook.exe is in the Office14 folder in "Program Files".
Good point about using a domain account. I launched the command prompt logged in with a domain account, but didn't specify one when I ran psexec \\systemname cmd. Maybe that's the problem.
The other thing is I'm not sure if RunAsCurrentUser is a standalone utility or if it can only be used with IBM's BigFix app. Any idea about that? - blashmet 9 years ago
Comments:
-
I'm just trying to install an Outlook plugin and wanted Outlook to restart as the current user that is logged in so I don't have to ask them to open it again. It's not a huge deal if I can't do it and need them to open Outlook, but I'm just curious how it would be done.
What "remote access tools native to the OS" or "enterprise options" are you referring to? - blashmet 9 years ago-
ditto on the 32 64 bit thing for Office. The reason most people use, and Microsoft recommend the 32 bit office, is for add ins. - Badger 9 years ago
Comments:
-
Using RDP wouldn't let me impersonate them without the credentials right? I want an "on demand" deployment that restarts Outlook as them. - blashmet 9 years ago
-
I don't think this is realistically achievable without a lot of work. Are the users so dumb that they cannot start Outlook on their own? Can the install not be configured to happen when the user logs in and before Outlook starts? - EdT 9 years ago
-
Obviously they can start Outlook on their own, and yeah it probably could be configured to install at logon. That's not what I'm trying to do though :)
I thought this was interesting, but I'm not sure if another app is needed to use it:
https://www-304.ibm.com/support/docview.wss?uid=swg21506033 - blashmet 9 years ago
Comments:
-
Thanks for the help. I can't even get the utility to work locally on calc.exe, so I think you might need IBMs "BigFix" app to use it. Anyway, I think I'm gonna give up on this and just have the user restart Outlook. Thanks for your help. - blashmet 9 years ago
What is the add in?Normally you put an outlook add in down, and its registered with the system so its picked up on the first relaunch of Outlook. This add in definitely works with the version (64bit) of office you have??
Could you not use a scheduled task to run as the logged in user (you might need to know the username), your other problem would be what if outlook is running so you would have to kill it, then relaunch it.
I look forward to hearing the solution on this.
Comments:
-
The add in is a Barracuda Spam Filter plugin. It just adds a button to classify things as spam. Yes, it definitely works with x86/x64 versions of office, as they have both x86 and x64 versions available.
"Could you not use a scheduled task to run as the logged in user (you might need to know the username), your other problem would be what if outlook is running so you would have to kill it, then relaunch it."
This IS precisely the problem :) I want to: 1) kill outlook.exe 2) install the plugin, 3) restart Outlook.exe (as the currently logged on user).
The problem is that all the ways I know of restarting Outlook.exe will start it as MY user, not the user that is currently logged into the system.
Not sure how I would use a scheduled task to accomplish step 3, unless I knew the users username/password and had the task run under their account. - blashmet 9 years ago-
if you are going to just kill outlook, leave it dead, as soon as they can they will launch it again. You really should be 'polite' and ask them to close outlook for the install. my problem with that is, no one reads the pop ups. So killing Outlook should work. install the plug in, then when they restart outlook (as themselves) your should be home and hosed. - Badger 9 years ago
-
I just need to make sure to ask them to wait 30-45 seconds so the plugin has time to install.
And I was trying to be "polite" by taking care of shutting Outlook down for them (I would ask them if it's ok first, of course) :) - blashmet 9 years ago