Scripts Thread, Remotely start an application in users context in Coding and Web Development; Hey.
I'm trying to make a vbs script to kill explorer.exe (this bit works), and then start it again (this ...
1st November 2011, 04:59 PM #1
- Rep Power
Remotely start an application in users context
I'm trying to make a vbs script to kill explorer.exe (this bit works), and then start it again (this bit I can't do). However it must run in the context/with permissions of the user that is logged on. (Can be a random user)
Explorer.exe crashes fairly often on our old machines, and restarting the application remotely works, however an automated solution would be ideal.
At the moment we use pskill.exe to kill explorer on the remote machine, but NetSupport's "Execute at client" to start it again, and it loads as that user logged on. However I cannot replicate this using PsTools or any other way in my knowledge.
Can anyone help?
1st November 2011, 05:06 PM #2
Can PsExec use the %username% variable with the -u flag? Or will it pick up the username running psexec rather than the remote user?
Although presumably there is a way of doing it automatically - I've never investigated the difference but sometimes after killing explorer it restarts itself, where sometimes it needs explicitly calling again from task manager. So there should be something to get it to restart when it's died.
1st November 2011, 05:56 PM #3
Thanks to Arthur from:
SYNACK (1st November 2011)
1st November 2011, 07:41 PM #4
- Rep Power
Using the -u switch isn't worth it for me, as I'd have to type their username, and I believe I'd require their password too. It'd be good if it just ran it as the random user who is logged on. Some of the switches do load explorer.exe as myself, which is no good as I'm an administrator!
Originally Posted by sonofsanta
Cheers, I'll have a look at that later or tomorrow and report back.
Originally Posted by Arthur
By fintang in forum General Chat
Last Post: 22nd October 2009, 09:16 PM
By SpecialAgent in forum Educational IT Jobs
Last Post: 16th October 2008, 12:11 PM
Last Post: 11th September 2008, 03:03 PM
Last Post: 4th April 2006, 11:23 AM
By mac_shinobi in forum How do you do....it?
Last Post: 24th January 2006, 01:29 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)