Skip to content

Set ePOTag

Michael Arranaga edited this page Aug 30, 2019 · 1 revision

external help file: ePOwerShell-help.xml Module Name: ePOwerShell online version: schema: 2.0.0

Set-ePOTag

SYNOPSIS

Applies tags to computers managed in ePO

SYNTAX

Set-ePOTag [-ComputerName] <Object> [-TagName] <Object> [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Using the supplied ComputerName(s) and TagName(s), we can apply the tag to the computers specified. Tags or Computers can be passed in through the pipeline, but not both at the same time.

EXAMPLES

EXAMPLE 1

Set-ePOTag -Computer $Computer -Tag $Tag

Set a single tag on a single computer

EXAMPLE 2

Set-ePOTag @(Computer1, Computer2) Tag1

Set one tag on two computers

EXAMPLE 3

Set-ePOTag Computer1 @(Tag1, Tag2)

Set two tags to a single computer:

PARAMETERS

-ComputerName

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: Computer, cn

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-TagName

{{ 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

-WhatIf

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

-Confirm

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

None

NOTES

RELATED LINKS