Sdílet prostřednictvím


Set-SCVMMServer

Modifies properties of the VMM management server.

Syntax

Default (Default)

Set-SCVMMServer
    [-DiagnosticsAndUsageData <Boolean>]
    [-VMRCAccessAccount <String>]
    [-VMRCDefaultPort <UInt32>]
    [-VMConnectDefaultPort <UInt32>]
    [-LibraryRefresherEnabled <Boolean>]
    [-LibraryRefresherFrequency <UInt16>]
    [-AutomaticLogicalNetworkCreationEnabled <Boolean>]
    [-LogicalNetworkMatch <LogicalNetworkMatchOption>]
    [-BackupLogicalNetworkMatch <LogicalNetworkMatchOption>]
    [-AutomaticVirtualNetworkCreationEnabled <Boolean>]
    [-VMSubnetIDRangeStart <UInt32>]
    [-VMSubnetIDRangeEnd <UInt32>]
    [-VMConnectTimeToLiveInMinutes <Int32>]
    [-VMConnectGatewayCertificatePath <String>]
    [-VMConnectGatewayCertificatePassword <SecureString>]
    [-VMConnectHyperVCertificatePath <String>]
    [-VMConnectHyperVCertificatePassword <SecureString>]
    [-VMConnectNCCertificatePath <String>]
    [-VMConnectNCCertificatePassword <SecureString>]
    [-VMConnectHostIdentificationMode <VMConnectHostIDMode>]
    [-KeyProtectionServerUrl <String>]
    [-AttestationServerUrl <String>]
    [-ShieldingHelperVhd <VirtualHardDisk>]
    [-VMMServer <ServerConnection>]
    [-PortACL <PortACL>]
    [-RemovePortACL]
    [-RunAsynchronously]
    [-PROTipID <Guid>]
    [-JobVariable <String>]
    [<CommonParameters>]

Description

The Set-SCVMMServer cmdlet modifies one or more properties of the Virtual Machine Manager (VMM) management server. VMM settings that you can change with the Set-SCVMMServer cmdlet include the following:

Configure Federated Authentication

You can use the parameters provided with Set-SCVMMServer to configure Federated Authentication. Federated authentication allows a user to connect to the console of a virtual machine without having credentials on the Hyper-V host computer. Use the New-SCVMConnectFedAuth cmdlet to issue Federated Authentication tokens.

Microsoft Customer Experience Improvement Program (CEIP) Participation

You can use Set-SCVMMServer to specify whether to enable Service Quality Metrics (SQM) for this VMM management server.

Library Settings

You can use Set-SCVMMServer to specify whether the VMM library refresher is enabled and, if so, how often objects in the library are refreshed.

Network Settings

You can use the Set-VMMServer cmdlet to configure how to match logical networks. You can also enable creation of logical and virtual networks automatically.

Remote Control

You can use Set-SCVMMServer to configure the default remote control port to use when connecting to virtual machines (VMConnect).

Contact for Self-Service Users

You can use Set-SCVMMServer to specify the e-mail address of an administrator that supports self-service users.

Guest Agent Settings

You can use Set-SCVMMServer to select the method used to communicate with the VMM guest agent: FQDN or IP Address.

Examples

Example 1: Set the frequency at which the library is refreshed

PS C:\> Set-SCVMMServer -VMMServer "VMMServer01.Contoso.com" -LibraryRefresherEnabled $True -LibraryRefresherFrequency 24

This command enables library refreshing for VMMServer01 and sets the refreshing frequency rate to every 24 hours.

Example 2: Opt out of the Customer Experience Improvement Program

PS C:\> Set-SCVMMServer -VMMServer "VMMServer01.Contoso.com" -CEIPOptIn $False

This command opts out of participation in the Microsoft Customer Experience Improvement Program (CEIP) by setting the CEIPOptIn parameter to $False on VMMServer01.

Example 3: Specify a self-service contact e-mail address

PS C:\> Set-SCVMMServer -VMMServer "VMMServer01.Contoso.com" -SelfServiceContactEmail "AdminHelp@Contoso.com"

This command sets the self service contact e-mail address to AdminHelp@Contoso.com on VMMServer01.

Parameters

-AttestationServerUrl

Specifies the URL of the attestation server.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-AutomaticLogicalNetworkCreationEnabled

Indicates whether logical networks are created automatically. When set to $True, a new logical network is created, based on the logical network matching settings, if the host network network adapter is not associated with a logical network.

Parameter properties

Type:Boolean
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-AutomaticVirtualNetworkCreationEnabled

Indicates whether virtual networks are created automatically. When set to $True, if a host has one network adapter for placement associated with a logical network, but no virtual networks attached to the adapter, a new virtual network is created.

Parameter properties

Type:Boolean
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-BackupLogicalNetworkMatch

Specifies the network matching method to use if the primary network matching method is not available.

Parameter properties

Type:LogicalNetworkMatchOption
Default value:None
Accepted values:Disabled, FirstDNSSuffixLabel, DNSSuffix, NetworkConnectionName, VirtualNetworkSwitchName
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DiagnosticsAndUsageData

The Set-SCVMMServer cmdlet modifies one or more properties of the Virtual Machine Manager (VMM) management server. VMM settings that you can change with the Set-SCVMMServer cmdlet include the following:

Configure Federated Authentication

You can use the parameters provided with Set-SCVMMServer to configure Federated Authentication. Federated authentication allows a user to connect to the console of a virtual machine without having credentials on the Hyper-V host computer. Use the New-SCVMConnectFedAuth cmdlet to issue Federated Authentication tokens.

Microsoft Customer Experience Improvement Program (CEIP) Participation

You can use Set-SCVMMServer to specify whether to enable Service Quality Metrics (SQM) for this VMM management server.

Library Settings

You can use Set-SCVMMServer to specify whether the VMM library refresher is enabled and, if so, how often objects in the library are refreshed.

Network Settings

You can use the Set-VMMServer cmdlet to configure how to match logical networks. You can also enable creation of logical and virtual networks automatically.

Remote Control

You can use Set-SCVMMServer to configure the default remote control port to use when connecting to virtual machines (VMConnect).

Contact for Self-Service Users

You can use Set-SCVMMServer to specify the e-mail address of an administrator that supports self-service users.

Guest Agent Settings

You can use Set-SCVMMServer to select the method used to communicate with the VMM guest agent: FQDN or IP Address.

Parameter properties

Type:Boolean
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-JobVariable

Specifies that job progress is tracked and stored in the variable named by this parameter.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-KeyProtectionServerUrl

Specifies the URL for the Key Protection Server (KPS).

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-LibraryRefresherEnabled

Indicates, when set to $True, that VMM library objects are refreshed.

Parameter properties

Type:Boolean
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-LibraryRefresherFrequency

Specifies, in hours, the frequency at which objects in the VMM library are refreshed. The default setting is 1 hour.

Parameter properties

Type:UInt16
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-LogicalNetworkMatch

Specifies the logical network matching method to use for automatically creating logical networks. The acceptable values for this parameter are:

  • Disabled
  • FirstDNSSuffixLabel
  • DNSSuffix
  • NetworkConnectionName
  • VirtualNetworkSwitchName

Parameter properties

Type:LogicalNetworkMatchOption
Default value:None
Accepted values:Disabled, FirstDNSSuffixLabel, DNSSuffix, NetworkConnectionName, VirtualNetworkSwitchName
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PortACL

Specifies a port ACL object.

Parameter properties

Type:PortACL
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-RemovePortACL

Indicates that this operation removes the port access control list (ACL).

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ShieldingHelperVhd

The Set-SCVMMServer cmdlet modifies one or more properties of the Virtual Machine Manager (VMM) management server. VMM settings that you can change with the Set-SCVMMServer cmdlet include the following:

Configure Federated Authentication

You can use the parameters provided with Set-SCVMMServer to configure Federated Authentication. Federated authentication allows a user to connect to the console of a virtual machine without having credentials on the Hyper-V host computer. Use the New-SCVMConnectFedAuth cmdlet to issue Federated Authentication tokens.

Microsoft Customer Experience Improvement Program (CEIP) Participation

You can use Set-SCVMMServer to specify whether to enable Service Quality Metrics (SQM) for this VMM management server.

Library Settings

You can use Set-SCVMMServer to specify whether the VMM library refresher is enabled and, if so, how often objects in the library are refreshed.

Network Settings

You can use the Set-VMMServer cmdlet to configure how to match logical networks. You can also enable creation of logical and virtual networks automatically.

Remote Control

You can use Set-SCVMMServer to configure the default remote control port to use when connecting to virtual machines (VMConnect).

Contact for Self-Service Users

You can use Set-SCVMMServer to specify the e-mail address of an administrator that supports self-service users.

Guest Agent Settings

You can use Set-SCVMMServer to select the method used to communicate with the VMM guest agent: FQDN or IP Address.

Parameter properties

Type:VirtualHardDisk
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMConnectDefaultPort

Specifies the default value for the TCP port used for Virtual Machine Connection (VMConnect) sessions on all Hyper-V hosts managed by this VMM server. Typically, the default port is 2179, but you can use this parameter to change the default. This parameter does not apply to VMware ESX Server hosts or Citrix XenServer hosts.

Parameter properties

Type:UInt32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMConnectGatewayCertificatePassword

Specifies the gateway certificate password as a secure string. You must specify a value for this parameter when the VMConnectGatewayCertificatePath parameter is specified.

Parameter properties

Type:SecureString
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMConnectGatewayCertificatePath

Specifies the path to a private key certificate (.pfx file).

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMConnectHostIdentificationMode

Specifies how the Hyper-V host is identified. The acceptable values for this parameter are:

  • FQDN
  • IPv4
  • IPv6
  • HostName

Parameter properties

Type:VMConnectHostIDMode
Default value:None
Accepted values:FQDN, IPv4, IPv6, HostName
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMConnectHyperVCertificatePassword

Specifies the Hyper-V certificate password as a secure string. You must specify a value for this parameter when the VMConnectHyperVCertificatePath parameter is specified.

Parameter properties

Type:SecureString
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMConnectHyperVCertificatePath

Specifies the path to a private key certificate (.pfx file).

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMConnectNCCertificatePassword

The Set-SCVMMServer cmdlet modifies one or more properties of the Virtual Machine Manager (VMM) management server. VMM settings that you can change with the Set-SCVMMServer cmdlet include the following:

Configure Federated Authentication

You can use the parameters provided with Set-SCVMMServer to configure Federated Authentication. Federated authentication allows a user to connect to the console of a virtual machine without having credentials on the Hyper-V host computer. Use the New-SCVMConnectFedAuth cmdlet to issue Federated Authentication tokens.

Microsoft Customer Experience Improvement Program (CEIP) Participation

You can use Set-SCVMMServer to specify whether to enable Service Quality Metrics (SQM) for this VMM management server.

Library Settings

You can use Set-SCVMMServer to specify whether the VMM library refresher is enabled and, if so, how often objects in the library are refreshed.

Network Settings

You can use the Set-VMMServer cmdlet to configure how to match logical networks. You can also enable creation of logical and virtual networks automatically.

Remote Control

You can use Set-SCVMMServer to configure the default remote control port to use when connecting to virtual machines (VMConnect).

Contact for Self-Service Users

You can use Set-SCVMMServer to specify the e-mail address of an administrator that supports self-service users.

Guest Agent Settings

You can use Set-SCVMMServer to select the method used to communicate with the VMM guest agent: FQDN or IP Address.

Parameter properties

Type:SecureString
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMConnectNCCertificatePath

The Set-SCVMMServer cmdlet modifies one or more properties of the Virtual Machine Manager (VMM) management server. VMM settings that you can change with the Set-SCVMMServer cmdlet include the following:

Configure Federated Authentication

You can use the parameters provided with Set-SCVMMServer to configure Federated Authentication. Federated authentication allows a user to connect to the console of a virtual machine without having credentials on the Hyper-V host computer. Use the New-SCVMConnectFedAuth cmdlet to issue Federated Authentication tokens.

Microsoft Customer Experience Improvement Program (CEIP) Participation

You can use Set-SCVMMServer to specify whether to enable Service Quality Metrics (SQM) for this VMM management server.

Library Settings

You can use Set-SCVMMServer to specify whether the VMM library refresher is enabled and, if so, how often objects in the library are refreshed.

Network Settings

You can use the Set-VMMServer cmdlet to configure how to match logical networks. You can also enable creation of logical and virtual networks automatically.

Remote Control

You can use Set-SCVMMServer to configure the default remote control port to use when connecting to virtual machines (VMConnect).

Contact for Self-Service Users

You can use Set-SCVMMServer to specify the e-mail address of an administrator that supports self-service users.

Guest Agent Settings

You can use Set-SCVMMServer to select the method used to communicate with the VMM guest agent: FQDN or IP Address.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMConnectTimeToLiveInMinutes

Specifies, in minutes, the validity period for which the tokens are issues. Valid values are 1 to 60.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMMServer

Specifies a VMM server object.

Parameter properties

Type:ServerConnection
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-VMRCAccessAccount

Specifies the account to use when connecting to a virtual machine by using Virtual Machine Remote Control (VMRC).

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMRCDefaultPort

Specifies the default port to use when connecting to a virtual machine by using VMRC.

Parameter properties

Type:UInt32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMSubnetIDRangeEnd

Specifies the ending ID for a virtual machine subnet ID range.

Parameter properties

Type:UInt32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMSubnetIDRangeStart

Specifies the starting ID for a virtual machine subnet ID range.

Parameter properties

Type:UInt32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

VMMServer

This cmdlet returns a VMMServer object.