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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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?
Answered 02/07/2012 by: andemats
Second Degree Black Belt

Please log in to comment
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
Answered 02/07/2012 by: jamesabullock
Senior Yellow Belt

Please log in to comment
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
Answered 02/08/2012 by: jamesabullock
Senior Yellow Belt

Please log in to comment
0
Running psexec to troubleshoot
Answered 02/09/2012 by: jamesabullock
Senior Yellow Belt

Please log in to comment
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.
Answered 02/10/2012 by: VBScab
Red Belt

Please log in to comment
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.
Answered 03/13/2012 by: hchavarria
Senior Yellow Belt

Please log in to comment
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.

Answered 06/18/2012 by: jamesabullock
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity