Pregunta

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top