The LegacyNetworking module contains cmdlets and DSC resources for managing Windows 7 and Server 2008 R2 machines. These resources can be used to manage basic networking settings of down-level operating systems. Wherever possible, syntax compatibility with the xNetworking resources has been provided to easily replicate settings between different operating system versions.
- Get-LegacyNetAdapater: Queries network adapters.
- Get-LegacyNetAdapaterConfiguration: Queries network adapter configurations.
- Get-LegacyNetFirewallRule: Retrieves existing firewall rule(s).
- New-LegacyNetFirewallRule: Creates a new firewall rule.
- Remove-LegacyNetFirewallRule: Removes an existing firewall rule.
- Set-LegacyNetFirewallRule: Updates an existing firewall rule.
- vDefaultGatewayAddress: Configures the default gateway of a network adapter.
- vDNSServerAddress: Configures the DNS server address(es) a network adapter.
- vFirewall: Manages a local firewall rule.
- vIPAddress: Manages local IP address assigned to a network adapter.
Configures the default gateway of a network adapter.
vDefaultGatewayAddress [String] #ResourceName
{
Address = [string]
InterfaceAlias = [string]
[ AddressFamily = [string] { IPv4 } ]
}
Configures the DNS server address(es) a network adapter.
vDNSServerAddress [String] #ResourceName
{
Address = [string[]]
InterfaceAlias = [string]
[ AddressFamily = [string] { IPv4 } ]
}
Manages a local firewall rule.
vFirewall [String] #ResourceName
{
DisplayName = [string]
Action = [string] { Allow | Block | Bypass }
Direction = [string] { Inbound | Outbound }
Profile = [string[]] { Domain | Private | Public | Any }
[ Description = [string] ]
[ Enabled = [string] { False | True } ]
[ Ensure = [string] { Absent | Present } ]
[ LocalPort = [string[]] ]
[ Program = [string] ]
[ Protocol = [string] ]
[ RemotePort = [string[]] ]
[ Service = [string] ]
}
Manages local IP address assigned to a network adapter.
vIPAddress [String] #ResourceName
{
InterfaceAlias = [string]
IPAddress = [string]
SubnetMask = [uint32]
[ AddressFamily = [string] { IPv4 } ]
}