+ Post New Thread
Results 1 to 4 of 4
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 ...
  1. #1

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Remotely start an application in users context

    Hey.

    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?

  2. #2

    sonofsanta's Avatar
    Join Date
    Dec 2009
    Location
    Lincolnshire, UK
    Posts
    5,137
    Thank Post
    917
    Thanked 1,524 Times in 1,037 Posts
    Blog Entries
    47
    Rep Power
    655
    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.

  3. #3


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,416
    Thank Post
    243
    Thanked 2,825 Times in 2,084 Posts
    Rep Power
    814

  4. Thanks to Arthur from:

    SYNACK (1st November 2011)

  5. #4

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by sonofsanta View Post
    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.
    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!

    Cheers, I'll have a look at that later or tomorrow and report back.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 30
    Last Post: 22nd October 2009, 08:16 PM
  2. CRM user ans application support officer East Anglia
    By SpecialAgent in forum Educational IT Jobs
    Replies: 0
    Last Post: 16th October 2008, 11:11 AM
  3. Replies: 2
    Last Post: 11th September 2008, 02:03 PM
  4. Disabling 'Run Application' In Office XP
    By Pear in forum Windows
    Replies: 16
    Last Post: 4th April 2006, 10:23 AM
  5. Close Tray and Eject Tray in Right context menu ?
    By mac_shinobi in forum How do you do....it?
    Replies: 2
    Last Post: 24th January 2006, 12:29 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •