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

Set-PSUComputerGroup

Updates a computer group in PowerShell Universal.

SYNOPSIS

Updates a computer group in PowerShell Universal.

SYNTAX

Id

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

ComputerGroup

Set-PSUComputerGroup [-ComputerGroup] <ComputerGroup> [-Name <String>] [-Description <String>]
 [-Tags <String[]>] [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
 [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

DESCRIPTION

Updates a computer group in PowerShell Universal.

EXAMPLES

Example 1

Updates the computer group with the ID of 1 to have the name of 'Test Group'.

PARAMETERS

-AppToken

The AppToken that is used for calling the PowerShell Universal Management API. You can also call Connect-PSUServer before calling this cmdlet to set the AppToken for the entire session.

-ComputerGroup

The computer group to update.

-ComputerName

Specifies the computer name or URL that should be called when accessing the PowerShell Universal Management API. You can also use Connect-PSUServer before calling this cmdlet to set the computer name for the entire session.

-Description

A description of the computer group.

-Id

The ID of the computer group to update.

-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 computer group.

-Tags

The tags to associate with the computer group.

-UseDefaultCredentials

Use default credentials when connecting to the management API

-Credential

Credentials to login to the PowerShell Universal Management API.

-TrustCertificate

Whether the cmdlet should ignore certificate issues.

-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

PowerShellUniversal.ComputerGroup

OUTPUTS

System.Object

NOTES

Last updated

Was this helpful?