/build/static/layout/Breadcrumb_cap_w.png

Trouble with .bat repair/uninstall/install msi/xcopy/drive mapping

I seem to be having lots of trouble running .bat files (On xp sp3) using kscripts or Shell scripts as administrator or as the system. Every Script runs fine locally at command line or in batch files silent or shown(Taskkills, MSI installs, xcopy, drive mapping, folder creation). Simple things run fine from the kace box 1100, such as folder creation, taskkills or forced reboots, but when I run shell scripts or kscripts that launch batch files that do xcopy or msi runs it just seems to do nothing. I've had success with running MSIs when the files are located locally and the administrator is logged in.

Any help on this issue would be appreciated!
~James

0 Comments   [ + ] Show comments

Answers (7)

Posted by: anonymous_9363 12 years ago
Red Belt
2
I've had success with running MSIs when the files are located locally and the administrator is logged in.Remember that, by default, the local System account has no access to network resources. You'll need to copy installs locally and execute them from there.
Posted by: jamesabullock 11 years ago
Senior Yellow Belt
0

I zipped up the files and had them sent to each computer using a Dell Kace 1,100. I have been able to successfully install and uninstall as system once the files are located on the computer.

I've found that using powershell you will have trouble modifying existing pieces of existing software depending on how the execution policy is set on each computer.

Posted by: andemats 12 years ago
2nd Degree Black Belt
0
ORIGINAL: jamesabullock
I've had success with running MSIs when the files are located locally and the administrator is logged in.


Sounds like access issues.
Perhaps the account running the scripts (SYSTEM maybe) don't have access to the shares (UNC-paths?) where your MSI's or files and folders (for xcopy) are located?
Posted by: jamesabullock 12 years ago
Senior Yellow Belt
0
It seems to run fine locally when logged in as a domain admin and fails when running from the kace box as a domain admin. When running a batch file does it still do some things as system even though it's run as admin? Though, if this were the issue you'd think it wouldn't work locally. I will double check our permissions.

Thanks,
~James
Posted by: jamesabullock 12 years ago
Senior Yellow Belt
0
All the paths are fine, it's not a permission issue. Any other ideas? Is there a list of things done differently with MSIs in batch files when the batch file is started remotely?

Thanks,
~James
Posted by: jamesabullock 12 years ago
Senior Yellow Belt
0
Running psexec to troubleshoot
Posted by: hchavarria 12 years ago
Senior Yellow Belt
0
I also am having the same exact problem, I run the .bat file located in a share via a UNC path from the machine using domain admin and it run correctly but when I call this .bat file or I use shell script using the domain admin account it doesn't work.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ