M
Mr. Novice
On my Win2k Pro workstation, the command listed below will
return an errorlevel of "1", which is correct because the
service is installed. On my co-workers Win2k Pro
workstation the command returns an errorlevel of "0"
despite the fact that the find statement does not
find "does not exist". It's seems that his machine is
pulling the errorlevel of the sc command, not the find
command, but mine is getting the errorleve value from the
find command. Can anyone explain this? Both machines are
using the same company image so there are no differences
in service pack levels or hot fixes.
sc \\server query "service" | find "does not exist"
Chad
return an errorlevel of "1", which is correct because the
service is installed. On my co-workers Win2k Pro
workstation the command returns an errorlevel of "0"
despite the fact that the find statement does not
find "does not exist". It's seems that his machine is
pulling the errorlevel of the sc command, not the find
command, but mine is getting the errorleve value from the
find command. Can anyone explain this? Both machines are
using the same company image so there are no differences
in service pack levels or hot fixes.
sc \\server query "service" | find "does not exist"
Chad