Remove-HPUEFIVariable



Summary

Removes a UEFI variable

Syntax

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

Description

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

Parameters

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

Notes

  • The process calling these commands 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 command is not supported on legacy mode, only on UEFI mode.
  • This command requires elevated privileges.

Examples


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

See also