Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Running .bat File from Local PC

I would like to use PDQ Deploy to run a .bat file that's located in the C:\ drive of a given PC.

I have a step setup in PDQ Deploy to copy a folder with the .bat included to copy to various PCs. Once copied, I would like PDQ Deploy to run that .bat file from that local machine and not from a server or share.

How is this done?

0

Comments

3 comments
Date Votes
  • Hi,

    forget C:\ and the copy step, the only thing you need is a Install Step with the .bat.

    The .bat gets copied automatically to the target PC (\computer\Admin$\AdminArsenal....) and executed local on the PC.

    enter image description here

    Or Create a "Command" step and put your full .bat code in.

    If you stay by your way, (copy a folder to c:\ and execute from there) just create a "Command" step after the copy and put the path to the .bat in

    "C:\your_Folder\your_bat.bat"

    (the " " to eliminate errors with spaces in the path or filename"

    enter image description here

    0
  • Thank you! The first method you pointed out worked for me. There was no need to copy the files to the local C:\ of the PC and all was needed was the install step with the location of the appropriate files.

    Now using HP BIOS Configuration Utility and PDQ, we can make remote BIOS changes to our PCs.

    0
  • I know, and remote Bios updates are possible too 😉

    enter image description here

    The "Including Entire Directory" option makes a extra copy step unnecessary

    0