I'm not sure why I'm having so much trouble here. The short of it is I have a registry change that is called up by a simple batch file. I've verified it works when manually merged but as a scheduled package it is not executing the bat. I've tried t0 push and multicast it, both result in errors. Here is the result from an attempted multicast (sdclient log):
Thu, 05 Apr 2012 14:15:15 Failed to get the response for the request from NLWS0098 (3)
Thu, 05 Apr 2012 14:15:15 Web request to core server failed, result 1803, http status 0
Thu, 05 Apr 2012 14:15:16 Cannot get preferred server list from core
Thu, 05 Apr 2012 14:15:16 File (http://nlws0098/ldpackages/NSElite/NSTransferUpload/NSTransferUploadNO_test.bat) is cached locally
Thu, 05 Apr 2012 14:15:16 processing of package is complete, result -2147467259 (0x80004005 - code 16389)
The files are being created under C:\Program Files\LANDesk\LDClient\sdmcache\ldpackages\, so it makes it to the client but the batch will not run. What am I doing wrong here?
Contents of batch:
regedit /s "%Programfiles%\Landesk\ldclient\sdmcache\ldpackages\NSElite\NSTransferUpload\NSTransferUploadNO.reg"
exit /b 0
It doesn't look healthy on the file download so I wonder if it is failing before it attempts to launch the batch file.
Give your client a reboot just in case Targeted Multicasting has locked the file.
Also, as a test, just create a Manage Script that launches your batch file. Verify the batch is working OK first. Just to be absolutely certain, that batch isn't trying to change HKCU entries is it? If so, it won't work.
LANDesk Silver ESP
The One-Stop Shop for LANDesk Enhancements
Thanks for the reply Mark.
I rebooted the client, no change, same error. Also, the change is being made in HCLM so I'm ok there. I have manually executed the batch on my machine and confirmed it does work. Again I'm baffled as to why this won't work. The batch and registry file are both correctly being copied to the clients cache and can also be manually executed from there so I know the files being copied are fine. It just won't run the batch!!!???
is this a Windows 7 machine, do you have UAC enabled? Could be blocking the execution of the batch file from within the Local System
I know you said you tried manually testing the batch file, but did you test it from a Local System Account?
Great point Emiranda. It is Windows 7 and I checked and my UAC is set to Never. This got me thinking about the Account settings for the package. I had been playing around earlier and set it to Local System account. I changed it to Current User's Account and while I do not get the same error, the batch file is still not executing.
Thu, 05 Apr 2012 16:06:56 File (http://nlws0098/ldpackages/NSElite/NSTransferUpload/NSTransferUploadNO_test.bat) is cached locally
Thu, 05 Apr 2012 16:06:56 processing of package is complete, result -2147467259 (0x80004005 - code 16389)
Ok, gotcha. So is possible that the bat file is running but maybe you just dont know its running and its failing inside the batch file. Try adding a log file by piping out > log.txt
also, silly question but just want to make sure. Where is NSTransferUploadNO.reg? are you including it as an additional file or is is there already in the folder? Im just going by the logs that you are showing and i dont see the NSTransferUploadNO.reg getting downloaded.