大网数据广告活动
网络与域名解析

MSFT_NetFirewallHyperVVMSetting class

· 52CE 我爱测

Represents Windows Defender Firewall Hyper-V settings for a VM type.

Represents Windows Defender Firewall Hyper-V settings for a VM type.

For more info, see the Powershell documentation Set-NetFirewallHyperVVMSetting.

The following syntax is simplified from Managed Object Format (MOF) code, and includes all of the inherited properties.

Syntax

class MSFT_NetFirewallHyperVVMSetting : CIM_ManagedElement
{
  string Name;
  uint16 Enabled;
  uint16 DefaultInboundAction;
  uint16 DefaultOutboundAction;
  uint16 LoopbackEnabled;
  uint16 AllowHostPolicyMerge;
  string InstanceID;
  string Caption;
  string Description;
  string ElementName;
};

Members

The MSFT_NetFirewallHyperVVMSetting class has these types of members:

Properties

The MSFT_NetFirewallHyperVVMSetting class has these properties.

Name

Data type: string

Access type: Read/write

The unique identifier of the VM creator ID for which these settings apply.

Enabled

Data type: uint16

Access type: Read/write

Whether the firewall is enabled for this VM type.

Disabled (0)

Enabled (1)

NotConfigured (2)

DefaultInboundAction

Data type: uint16

Access type: Read/write

The default action for inbound traffic.

NotConfigured (0)

Allow (2)

Block (4)

DefaultOutboundAction

Data type: uint16

Access type: Read/write

The default action for outbound traffic.

NotConfigured (0)

Allow (2)

Block (4)

LoopbackEnabled

Data type: uint16

Access type: Read/write

Whether loopback is enabled for this VM type.

Disabled (0)

Enabled (1)

NotConfigured (2)

AllowHostPolicyMerge

Data type: uint16

Access type: Read/write

Determines whether host firewall rules and settings should be merged into the effective policy.

Disabled (0)

Enabled (1)

NotConfigured (2)

InstanceID

Data type: string

Access type: Read-only

Qualifiers: Key, Override

Reserved for internal use by the WMI provider only.

Caption

Data type: string

Access type: Read-only

Qualifiers: Override

Used in CimInstance.ToString(). A short string for describing this instance when debugging.

Description

Data type: string

Access type: Read-only

Qualifiers: Override

This field is ignored.

ElementName

Data type: string

Access type: Read-only

Qualifiers: Override

This field is ignored.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Namespace Root\StandardCimv2
MOF WFasCim.mof
DLL WFasCim.dll

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/17/2024
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。