-
Notifications
You must be signed in to change notification settings - Fork 8
Set ePOTag
Applies tags to computers managed in ePO
Set-ePOTag [-ComputerName] <Object> [-TagName] <Object> [-WhatIf] [-Confirm] [<CommonParameters>]
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.
Set-ePOTag -Computer $Computer -Tag $Tag
Set a single tag on a single computer
Set-ePOTag @(Computer1, Computer2) Tag1
Set one tag on two computers
Set-ePOTag Computer1 @(Tag1, Tag2)
Set 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: Computer, cn
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.