Skip to content

Add-UAScriptTag

SYNOPSIS

Assigns a tag to a script.

SYNTAX

Add-UAScriptTag [-Script] <Script> [-Tag] <Tag> [-ComputerName <String>] [-AppToken <String>]
 [-UseDefaultCredentials] [<CommonParameters>]

DESCRIPTION

Assigns a tag to a script.

EXAMPLES

Example 1

PS C:\> $Script = Get-UAScript -Id 10
PS C:\> $Tag = Get-UATag -Id 1
PS C:\> Add-UAScriptTag -Script $Script -Tag $Tag

Assigns the tag with id 1 to the script with id 10.

PARAMETERS

-AppToken

An app token to access the UA API.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ComputerName

The HTTP address of the UA REST API server.

Type: System.String
Parameter Sets: (All)
Aliases: Uri

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Script

A script returned by Get-UAScript or New-UAScript.

Type: PowerShellUniversal.Script
Parameter Sets: (All)
Aliases:

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

-Tag

A tag returned by Get-UATag or New-UATag.

Type: PowerShellUniversal.Tag
Parameter Sets: (All)
Aliases:

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

-UseDefaultCredentials

Use default credentials when connecting to the management API

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
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

UniversalAutomation.Script

OUTPUTS

System.Object

NOTES

Back to top