[wpkg-users] wmic check
Natxo Asenjo
natxo.asenjo at gmail.com
Mon Feb 21 10:52:36 CET 2011
hi,
I have a wmic check that does not get executed, so it never gets done.
This is it:
<package
id="is_primergyrx300_s3"
name="check if this is a PRIMERGY RX300 S3"
revision="1"
reboot="false"
priority="10000" >
<check type="execute"
path="%software%\fujitsu\check_primergyrx300s3.cmd"
condition="exitcodeequalto" value="0" />
</package>
and the check_primergyrx300s3_cmd:
=================
@echo off
rem if %errorlevel% of this command is 0, then it is a PRIMERGY RX300 S3
wmic computersystem get /format:list | findstr /i "PRIMERGY RX300 S3"
=================
If I run this a local system it works:
C:\WINDOWS\system32>whoami
nt authority\system
C:\WINDOWS\system32>%software%\fujitsu\check_primergyrx300s3.cmd
Model=PRIMERGY RX300 S3
C:\WINDOWS\system32>echo %errorlevel%
0
But when I run it from the wpkg service, it blocks in the Executing
command: %software%\fujitsu\check_primergyrx300s3.cmd and never goes
on.
Any thoghts?
--
Groeten,
natxo
More information about the wpkg-users
mailing list