Reference Guide

3
Error reporting in Dell Command |
PowerShell Provider
Dell Command | PowerShell Provider provides an Error Reporting feature. Dell Command | PowerShell
Provider uses the PowerShell ErrorVariable parameter to capture the ErrorRecord. This ErrorVariable can
be used to get more information such as exception, error id, error category, and recommended action
etc. about an error.
Example: To set the error variable.
gi .\POSTBehavior\numl -ErrorVariable ev
Example: To see more information about the error.
$ev.ErrorDetails
The table below describes all the possible Error IDs generated by Dell Command | PowerShell Provider
categorized by error categories.
Table 24. Error reporting in Dell Command | PowerShell Provider
Error
Category
Error ID Scenarios Example
ObjectNotF
ound
DellSmbiosPathNo
tFound
Path is correct but either attribute
name or category name is wrong.
Or
Category does not have any
supported attribute for local system
and trying to get or set some
attributes
dir .\PowerManagement\
gi .\PowerManagement
\Numlck
si .\PowerManagement\Numlck
“enabled”
si .\POSTBehaviord\Numlock
“enabled”
InvalidArgu
ment
InvalidPath
Path is not complete while doing
set operation.
PasswordProvided
Incorrecly
Trying to provide both plain text
password and secure password.
NullDrive
Newly created drive is null.
Or
Trying to remove drive which is
already null.
NoRoot Drive root is empty or null.
38