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

Set-PSUComputer

Updates a computer.

SYNOPSIS

Updates a computer.

SYNTAX

Id

Set-PSUComputer [-Id] <Int64> [-Maintenance <Boolean>] [-ComputerName <String>] [-AppToken <String>]
 [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

Computer

Set-PSUComputer [-Computer] <Computer> [-Maintenance <Boolean>] [-ComputerName <String>] [-AppToken <String>]
 [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

DESCRIPTION

Updates a computer.

EXAMPLES

Example 1

Enables maintenance mode for a computer.

PARAMETERS

-AppToken

The app token used to connect to the PowerShell Universal server.

-Computer

The computer name or URL of the PowerShell Universal server.

-ComputerName

The name of the computer to update.

-Id

The ID of the computer to update.

-Integrated

Whether to use the integrated environemnt.

-Maintenance

Whether to enable or disable maintenance mode for this computer.

-UseDefaultCredentials

Whether to use Windows Authentication for this call.

-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.Computer

OUTPUTS

System.Object

NOTES

Last updated

Was this helpful?