Question

I am trying run a batch file for a installation and I have used reg query to determine the presence of the pre-requisites and continue the installation.

When I run the batch file manually it works as expected but then when I use SCCM to execute this batch file it fails.

I put a pause and echoed the Errorlevel and found that reg query is not able to find the registry that is actually present when it runs using the "System" account

Is any one aware of this? Any suggestions on how to query the HKLM registry using the system account

Thanks in advance.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top