Skip to content

How to run batch file in OSD "Run command line"

Featured Replies

Hi All,

 

In a TS, if I have to install an application as user, the obvious choice is to run the install command with step "Run command line". I am not sure ifI can directly type "setup.exe" as command or run "cmd.exe /c setup.exe"

 

 

The question is what directive should I use to run batch file ("sccm-setup.cmd" or "install.bat") in the command line?

 

 

Thanks!

  • 2 weeks later...

Hey Capriguy84,

 

I had to work this one out for myself the other day

 

Create a "Run Command Line"

Name is whatever you like

Then under "Command Line" i have "cmd /c \\SERVER\Directory\Subdirectory\execute.cmd"

Then make the "Start in" "C:\" (or whatever drive you want it to be executed from

Then finally use "Run this step as the following account" and make sure the account you use is a local admin, I just went ".\Administrator"

 

All of my cmd's are running after the OS is applied and its doing it's final setup, so it's not within the WinPE

 

Hope that helps!

 

-Brendan

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.