Set-SCLogicalNetwork

Changes the properties of a logical network object

Description

The Set-SCLogicalNetwork cmdlet changes the properties of a System Center Virtual Machine Manager (VMM) logical network object. Properties that you can update include the name and description of the logical network.

For more information about Set-SCLogicalNetwork, type: "Get-Help Set-SCLogicalNetwork -online".

Parameters

LogicalNetwork

Required? true
Accept Pipeline Input? true (ByValue)
Position? 0
Specifies a logical network. A logical network is a named grouping of IP subnets and VLANs that is used to organize and simplify network assignments.

Description

Required? false
Accept Pipeline Input? false
Position? named
States a description for the specified object.

JobVariable

Required? false
Accept Pipeline Input? false
Position? named
Specifies that job progress is tracked and stored in the variable named by this parameter. 

Name

Required? false
Accept Pipeline Input? false
Position? named
Specifies the name of a VMM object.

PROTipID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

RunAsynchronously

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the job runs asynchronously so that control returns to the command shell immediately. 

VMMServer

Required? false
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM server object.
Requires a VMM logical network object, which can be retrieved by using the Get-SCLogicalNetwork cmdlet.

Examples

1: Change the name of a logical network.
PS C:\> $LogicalNetwork = Get-SCLogicalNetwork -Name "LogicalNetwork01"
PS C:\> Set-SCLogicalNetwork -LogicalNetwork $LogicalNetwork -Name "LogicalNetwork02"
The first command gets the logical network object named LogicalNetwork01 and stores the object in the $LogicalNetwork variable.

The second command changes the name of the logical network stored in $LogicalNetwork to "LogicalNetwork02".

See Also