Set-PSUComputer
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
RELATED LINKS
PERMISSIONS
The access token requires platform.computers/update to run this cmdlet remotely.
Last updated
Was this helpful?