-
Notifications
You must be signed in to change notification settings - Fork 8
Remove ePOTag
Removes tags from computers managed in ePO
Remove-ePOTag [-Computer] <Object> [-TagName] <Object> [-WhatIf] [-Confirm] [<CommonParameters>]
Using the supplied ComputerName(s) and TagName(s), we can remove the tag to the computers specified. Tags or Computers can be passed in through the pipeline, but not both at the same time.
Remove-ePOTag -Computer $Computer -Tag $Tag
Remove a single tag on a single computer
Remove-ePOTag -Computer @(Computer1, Computer2) -Tag Tag1
Remove one tag on two computers
Remove-ePOTag Computer1 @(Tag1, Tag2)
Remove two tags to a single computer
Specifies the name of the computer managed by ePO to have a tag applied to it. This can be provided by:
* An ePOComputer object
* A computer name
This parameter can be provided through the pipeline
Type: Object
Parameter Sets: (All)
Aliases: ComputerName, cn, Name
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
{{ Fill TagName Description }}
Type: Object
Parameter Sets: (All)
Aliases: Tag
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.