Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

SOLVED How to create a deployment to run a file from local drive of client computer

  • Thread starter Thread starter Sukhjit
  • Start date Start date
  • Replies Replies 4
  • Views Views 2K

Sukhjit

Member
Messages
10
Reaction score
2
Points
3
Say there is a file 123.exe sitting on all client computers under C:\Run
Is there any way to create a package to run this from local drive on all client computers.
Secondly is there any way to make a batch file to run this with specific account and password.

Thanks for your time in advance
 
Hi Sukhjit,

Say there is a file 123.exe sitting on all client computers under C:\Run
Is there any way to create a package to run this from local drive on all client computers.

Yes, create a package without a content and add the command line to execute your EXE file, either using %systemdrive%\Run\123.exe or C:\Run\123.exe

Secondly is there any way to make a batch file to run this with specific account and password.

Yes but you have to try it, below an example:
runas /user:contoso\domainadmin "mmc %windir%\system32\compmgmt.msc"

More details about the different option:
 
Hi Sukhjit,



Yes, create a package without a content and add the command line to execute your EXE file, either using %systemdrive%\Run\123.exe or C:\Run\123.exe



Yes but you have to try it, below an example:
runas /user:contoso\domainadmin "mmc %windir%\system32\compmgmt.msc"

More details about the different option:
Yes, create a package without a content and add the command line to execute your EXE file, either using %systemdrive%\Run\123.exe or C:\Run\123.exe

Yes but you have to try it, below an example:
runas /user:contoso\domainadmin "mmc %windir%\system32\compmgmt.msc"
Thanks Youssef. I was able to make it work. We have one primary site and rest are distribution points. Do I have to push this to other sites? Since the package is without contents there is nothing to push and hence the option to distribute is grayed out.
 
If there is no content, you don't have to make any distribution action.
The client will get the package and execute directly the command line as configured.
 
Last edited:
Back
Top