For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set-PSUVariable

Sets the properties of a variable.

SYNOPSIS

Sets the properties of a variable.

SYNTAX

IdValue

Set-PSUVariable [-Id] <Int64> [-Name <String>] [-Description <String>] [-ComputerName <String>]
 [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate]
 [-Cookies] [<CommonParameters>]

IdInputObject

Set-PSUVariable [-Id] <Int64> [-InputObject <Object>] [-Name <String>] [-Description <String>]
 [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials]
 [-Integrated] [-TrustCertificate] [-Cookies] [<CommonParameters>]

CredentialId

Set-PSUVariable [-Id] <Int64> [-UserName <String>] [-Password <String>] [-Name <String>]
 [-Description <String>] [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
 [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

VariableInputObject

VariableValue

CredentialVariable

DESCRIPTION

Sets the properties of a variable.

EXAMPLES

Example 1

Sets the value of the username variable to lee.

PARAMETERS

-AppToken

An app token to access the PSU API.

-ComputerName

The HTTP address of the PSU REST API server.

-Description

A description of this variable.

-Id

The ID of the variable to set.

-InputObject

An input object to set as the variable's value.

-Integrated

Executes the command internally rather than using the Management API. Only works when running script from within PowerShell Universal.

-Name

The name of the variable.

-UseDefaultCredentials

Use default credentials when connecting to the management API

-Variable

The variable to set. Use Get-UAVariable to retrieve a Variable object.

-Credential

Credentials to login to the PowerShell Universal Management API.

-Password

Specifies the password to use when updating the resource.

-TrustCertificate

Whether the cmdlet should ignore certificate issues.

-UserName

Specifies the user name to associate with the credential or identity.

-Cookies

Reuses and persists authentication cookies for the current PowerShell session.

CommonParameters

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

INPUTS

UniversalAutomation.Variable

OUTPUTS

System.Object

NOTES

Last updated

Was this helpful?