Skip to main content

Set-LXCAResourceAccessControl

This cmdlet enables or disables the resource access control.

Note
  • Only users with lxc-supervisor or lxc-security-admin authority can modify the access-control settings.

  • You cannot pipe objects to this cmdlet.

Syntax

Set-LXCAResourceAccessControl [-Connection LXCAConnection] 
-enable Boolean
[CommonParameter]

Parameters

-Connection LXCAConnection
Specifies the connection to the Lenovo XClarity Administrator server. If no connection is specified, the result from the last Connect-LXCA cmdlet is used.
-enable Boolean
Specifies whether to enable access control for managed devices. This can be one of the following values.
  • true. Enables access control.

  • false. Disables access control.

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

This cmdlet does not return an object.

Examples

  • The following example enables resource-access control.

    $cred = Get-Credential
    Connect-LXCA -Host 192.0.2.0 -Credential $cred

    Set-LXCAResourceAccessControl -enable true

    Disconnect-LXCA
  • The following example disables resource-access control.

    $cred = Get-Credential
    Connect-LXCA -Host 192.0.2.0 -Credential $cred

    Set-LXCAResourceAccessControl -enable false

    Disconnect-LXCA