Skip to content

Run bat file using SCCM 2007

Featured Replies

Hi All,

 

I trying to run a simple bat file via SCCM 2007. However I couldnt make it run on client machine.

This is my bat file

 

@ECHO OFF
ECHO %0
PAUSE

Under command line, i did try cmd.exe /c batfile.cmd. i also configured to run program from DP.

Anyone can assist me?

 

 

Have you tried the simpliest way without "cmd.exe" ?

 

batfile.cmd or batfile.bat

  • Author

Have you tried the simpliest way without "cmd.exe" ?

 

batfile.cmd or batfile.bat

I did try without cmd.exe on .cmd file and it failed.

 

 

I just tried without cmc.exe on .bat file and it throw me error " The pogram cannot be run because the program file cannot be found".

 

I checked..all the files are present.

- Your batfile.cmd is present at the root of your "source" package folder ?

 

- Are your sources replicated to your DP's ?

  • Author

- Your batfile.cmd is present at the root of your "source" package folder ?

 

- Are your sources replicated to your DP's ?

Yes at the root of the package. I did distribute to DP.

 

I tried both settings

- configured to run program from DP

- download from DP and run program locally.

 

Both settings didn't work

Last idea :

 

C:\Windows\System32\cmd.exe /c batfile.cmd

  • Author

Last idea :

 

C:\Windows\System32\cmd.exe /c batfile.cmd

 

so i put this command at the command line field?

 

do i need to enclose with " "?

so i put this command at the command line field? Yes

 

do i need to enclose with " "? No

  • Author

Hi Bendes,

 

tried with or without "" on either run on dp and dl and run locally..all not working..i'm not sure whats went wrong

..i thought it is simple to just run a bat file from SCCM 2007...guess no luck for me.

Thanks for your help ..appreciated it.

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.