Skip to main content

Split-LXCOUpdatePolicy

This cmdlet unassigns an update-compliance policy from specified resources.

Note
You cannot pipe objects to this cmdlet.

Syntax

Split-LXCOUpdatePolicy [-Connection LXCOConnection]
-ResourceIDs String[]
[CommonParameter]

Parameters

-Connection LXCAConnection
Specifies the connection to the Lenovo XClarity Orchestrator server. If no connection is specified, the result from the last Connect-LXCO cmdlet is used.
-ResourceIDs String[]
Specifies a list of IDs of resource managers and managed devices.
CommonParameters
This cmdlet supports the following common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer, -PipelineVariable, -OutVariable. For detailed information about each common parameter, see the Microsoft PowerShell Common Parameters webpage.

Results

Examples

The following example unassigns a policy to a resource.

$cred = Get-Credential
Connect-LXCO -HostUri 192.0.2.0 -Credential $cred -SkipCertificateCheck

$resourceIds = @(
"69B926D8279411E89ECB7ED30AEC2017-DF5F931E7CA149928C99E84633EA5E9C",
"3AB281F826A811E8B58E7ED30AEC214F-DF5F931E7CA149928C99E84633EA5E9C"
)
$result = Split-LXCOUpdatePolicy -ResourceIDs $resourceIds
$result

Disconnect-LXCO