Specifications

188 Version 2.0
set
Summary
Displays, changes or deletes a UEFI Shell environment variables.
Usage
set [-v] [sname [value]]
set [-d <sname>]
Options
-d
Deletes the environment variable
-v
Volatile variable
sname
Environment variable name
value
Environment variable value
Description
This command is used to maintain the UEFI Shell environment variables. This
command can do the following:
Display the environment variables.
Create new environment variables.
Change the value of existing environment variables.
Delete environment variables.
The set command will set the environment variable that is specified by sname to
value. This command can be used to create a new environment variable or to modify
an existing environment variable.
If the set command is used without any parameters, then all the environment
variables are displayed. If the set command is used with the -d option, then the
environment variable that is specified by sname will be deleted.
Note: This command does not change the value of the environment variable
lasterror.
Status Codes Returned
SHELL_SUCCESS The action was completed as requested.
SHELL_SECURITY_VIOLATION This function was not performed due to a security violation