I am new to SCCM, and I'm having problems with a batch file running automatically from cache on a Windows 7 machine,
I created a package with two programs, both are set to deploy locally and run from cache, using a unc path and to run with admin rights and to deploy whether the users logged in or not.
I have set the main program to run the msi and transform file via a command line which runs and installs fine.
The problem is with the second linked program, its a batch file, with a simple xcopy command such as xcopy "%~dp0Redirect.txt "c:\program files\example"
It fails to execute automatically, although it runs ok manually from cache when I "run as administrator" and I understand the UAC comes into force since
I want to copy a file into the Program Files area, although I thought deploying/running the program with admin rights "elevates" the rights for the user from SCCM so a specific app can install, so I didn't this would be the reason why it fails to run, is there anything I'm missing?
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
I am new to SCCM, and I'm having problems with a batch file running automatically from cache on a Windows 7 machine,
I created a package with two programs, both are set to deploy locally and run from cache, using a unc path and to run with admin rights and to deploy whether the users logged in or not.
I have set the main program to run the msi and transform file via a command line which runs and installs fine.
The problem is with the second linked program, its a batch file, with a simple xcopy command such as xcopy "%~dp0Redirect.txt "c:\program files\example"
It fails to execute automatically, although it runs ok manually from cache when I "run as administrator" and I understand the UAC comes into force since
I want to copy a file into the Program Files area, although I thought deploying/running the program with admin rights "elevates" the rights for the user from SCCM so a specific app can install, so I didn't this would be the reason why it fails to run, is there anything I'm missing?
Share this post
Link to post
Share on other sites