Jump to content

ssathre

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by ssathre

  1. Thanks Lordicast. You gave me what I need to get going. I appreciate your helping an old and tired network admin.
  2. Lordicast, thanks for the code however it throws an error in expression on line 4
  3. Im sorry but "HELP" isnt helping much. While it is showing a generic if file exists function is does not show how to achieve the script that I originally posted. I guess I was hoping for a bit more community help other than RTFM. Thanks
  4. nothing that I understood. thats why I came here looking for help and maybe an example? I guess im a bit daft, Sorry.
  5. Hello, I have a script that uses PSEXEC to launch processes on several of our remote servers. It has been working great for some time now. However, our corporate virus scanner is picking up PSEXEC as a virus and promptly deletes this file every day. The network admins wont add this to the allowed list as it is used by the conflicker worm and several others. To get around this i have a batch file that checks to see of psexec is in the windows/system32 folder and if not it copies it there. I would like to incorporate this into my auto IT code so when I execute the script it will check and copy the file if necessary. could someone please help me with this? Here is my batch file code: @ECHO OFF c: IF EXIST %windir%\system32\pskill.exe GOTO :next copy "\\path\PsTools\pskill.exe" %windir%\system32\pskill.exe :next IF EXIST %windir%\system32\psexec.exe GOTO :end copy "\\path\psexec.exe" %windir%\system32\psexec.exe :end Thanks
×
×
  • Create New...