smc.exe
command error codes

command error codes displays the error codes that the
smc.exe
command returns when the required parameters are invalid or missing.
smc.exe
command error codes
Error code
Description
0
Command was successful.
-1
User is not in the Windows Administrators or Windows Power Users group. If the client runs Windows Vista, the user is not a member of the Windows Administrators group.
-2
Invalid parameter.
You may have typed the parameter incorrectly, or you may have added an incorrect switch after the parameter.
-3
smc
client service is not installed.
-4
smc
client service is not running.
-5
Invalid input file.
For example, the
importconfig
,
exportconfig
,
updateconfig
,
importadv
,
exportadvrule
, and
exportlog
parameters require the correct path name and file name.
-6
Input file does not exist.
For example, the
importconfig
,
updateconfig
, and
importadvrule
parameters require the correct path name, configuration file name (.xml) or firewall rules file name (.sar).