Description: Adds or removes custom metadata associated with deployment payload (images or driver groups) or devices on a ...

Description: Adds or removes custom metadata associated with deployment
             payload (images or driver groups) or devices on a WDS server.
             Note that all entry modifications are processed sequentially
             with AddEntry operations processed first, followed by
             RemoveEntry operations, and then RemoveTag operations.

Syntax:
WDSUTIL [Options]
        /Set-Metadata
        [/Server:]
        {{/ObjectId:} | {Device:} |
         {Object:}}
        [/AddEntry: [/AddEntry: ...]]
        [/RemoveEntry: [/RemoveEntry: ...]]
        [/RemoveTag: [/RemoveTag: ...]]

[/Server:]
        The name of the WDS server. This can be either the NetBIOS
        name or the FQDN.  If not specified, the local server will be
        used.

[/ObjectId:]
        The ID of the object to add or remove custom metadata for. For
        images and driver groups, the ID is a GUID in string form.

[/Object:]
        This command specifies named objects which are always defined,
        the name is just an alias, and the GUID can be used instead.

          AllImages - C7D45E4D-8F62-4977-AFBE-104CD3FDC921
            All image objects inherit metadata assigned to this object.

          AllDriverGroups - 0B346B44-18A5-4523-8699-0A8B8DAD3980
            All driver group objects inherit metadata assigned to this
            object.

          DefaultResponse - 1FFD1D23-19AD-4BF3-844E-A67E98971E05
            Metadata assigned to this object is appended to every metadata
            query response.

[/Device:]
        The name of the device to display metadata for.

[/AddEntry:]
        The new entry to add to the metadata.  You can specify
        multiple entries to add in one command.

[/RemoveEntry:]
        Any and all entries in the metadata equivalent to the
        specified entry will be removed. You can specify multiple
        entries to remove in one command.

[/RemoveTag:]
        The tag for which all existing entries should be removed from
        the metadata.  You can specify multiple tags to remove in one
        command.

EXAMPLES:
---------
WDSUTIL /Set-Metadata /ObjectId:{4D36E972-E325-11CE-BFC1-08002BE10318}
/AddEntry:Contoso.Department='Accounting'
/AddEntry:Contoso.Department='Billing'


WDSUTIL /Set-Metadata /ObjectId:{4D36E972-E325-11CE-BFC1-08002BE10318}
/RemoveEntry:Contoso.EmploymentType[NotEqual]='FullTime'


WDSUTIL /Set-Metadata /Object:AllImages
/AddEntry:Contoso.Department[NotEqual]='Development'


WDSUTIL /Set-Metadata /Server:MyWdsServer /Device:Computer1
/RemoveTag:Contoso.CostCenter