+ Post New Thread
Results 1 to 1 of 1
Scripts Thread, Batch PSTools files in Coding and Web Development; I am making a batch file to kill explorer.exe on a remote, and then start it again (Because it keeps ...
  1. #1

    Join Date
    Nov 2010
    Birmingham, UK
    Thank Post
    Thanked 0 Times in 0 Posts
    Rep Power

    Batch PSTools files

    I am making a batch file to kill explorer.exe on a remote, and then start it again (Because it keeps crashing on various machines).

    The PSKill part works, it kills explorer.exe on the remote machine, however using PSExec doesn't start it again, and I don't know why. I have tried using the -d and -s switches, but that launched explorer.exe in the context of my user, which is useless because it needs to be in the context of either that system, or that specific user logged on. (We don't know their passwords)

    Here's what I have so far:
    @echo OFF
    ECHO What is the name of the computer?
    PSKILL.exe \\%COMPUTERNAME% explorer.exe 
    PSEXEC.exe \\%COMPUTERNAME% explorer.exe
    Like I said, it needs to run in the context of the logged on user, without knowing their username and password. Or becoming a VBScript to fish that out or something.
    Last edited by CHiLL; 19th October 2011 at 11:12 AM.

+ Post New Thread

Similar Threads

  1. Rename a batch of files all at once.
    By Kyle in forum How do you do....it?
    Replies: 10
    Last Post: 19th November 2009, 07:31 AM
  2. Batch copy files and folders up one level
    By PrimaryTech in forum Windows
    Replies: 0
    Last Post: 13th March 2009, 10:28 AM
  3. Batch: Text file -> Environment variable?
    By PiqueABoo in forum Scripts
    Replies: 5
    Last Post: 14th December 2006, 12:09 AM
  4. numbers and batch files
    By russdev in forum Windows
    Replies: 4
    Last Post: 19th November 2005, 10:51 PM
  5. Blocking Batch Files using Group Policy in Server 2003
    By markwilliamson2001 in forum Windows
    Replies: 13
    Last Post: 4th October 2005, 06:28 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