Remove-HPUEFIVariable



Summary

Remove a UEFI variable

Syntax

Remove-HPUEFIVariable [-Name] <String> [-Namespace] <String> [<CommonParameters>]

Description

This function removes a UEFI variable from a well-known or user-supplied namespace.

Parameters

Name Argument Description
Name <String> The name of the UEFI variable to remove
Namespace <String> Look for the variable in the specified custom namespace. The namespace must be in the format of a UUID, surrounded by curly brackets.

Notes

  • The process calling these functions must be able to acquire 'SeSystemEnvironmentPrivilege' privileges for the operation to succeed. For more information, refer to "Modify firmware environment values" in the linked documentation below.
  • This function is not supported on legacy mode, only on UEFI mode.
  • This function requires elevated privileges.

Examples


PS C:\> PS>Remove-HPUEFIVariable -Namespace "{21969aa8-681f-46be-90f0-6019ce9b0ee7}" -Name MyVariable

See also