Set-Net6to4Configuration
Set-Net6to4Configuration
Sets the 6to4 configuration for both client computers and servers.
Sintaxis
Parameter Set: ByName
Set-Net6to4Configuration [[-State] <State> ] [[-AutoSharing] <State> ] [[-RelayName] <String> ] [[-RelayState] <State> ] [[-ResolutionIntervalSeconds] <UInt32> ] [-AsJob] [-CimSession <CimSession[]> ] [-GPOSession <String> ] [-IPInterface <CimInstance> ] [-PassThru] [-PolicyStore <String> ] [-ThrottleLimit <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: InputObject (cdxml)
Set-Net6to4Configuration [[-State] <State> ] [[-AutoSharing] <State> ] [[-RelayName] <String> ] [[-RelayState] <State> ] [[-ResolutionIntervalSeconds] <UInt32> ] -InputObject <CimInstance[]> [-AsJob] [-CimSession <CimSession[]> ] [-PassThru] [-ThrottleLimit <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Descripción detallada
The Set-Net6to4Configuration cmdlet sets the 6to4 configuration of both client computers and servers.
6to4 is an address assignment and router-to-router automatic tunneling technology that is described in RFC 3056: Connection of IPv6 Domains via IPv4 Clouds. 6to4 provides a globally-routable IPv6 address to a host with a public IPv4 address. This IPv6 address can be used to connect to other 6to4 hosts or the IPv6 Internet.
This cmdlet is similar in functionality to the netsh interface 6to4 context
command.
Parámetros
-AsJob
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-AutoSharing<State>
Determines if 6to4 prefixes are forwarded when Internet Connection Sharing (ICS) is enabled. By default, 6to4 prefixes are forwarded.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
3 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-CimSession<CimSession[]>
Ejecuta el cmdlet en una sesión remota o en un equipo remoto. Escriba un nombre de equipo o un objeto de sesión, como la salida de un cmdlet New-CimSession o Get-CimSession. El valor predeterminado es la sesión actual en el equipo local.
Alias |
Session |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-GPOSession<String>
Specifies the Group Policy session in which to store the 6to4 configuration information.
You can use this parameter with the NetGPO cmdlets to aggregate multiple operations performed on a Group Policy Object (GPO).
You cannot use this parameter with the PolicyStore parameter.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-InputObject<CimInstance[]>
Specifies the object which contains the 6to4 configuration to modify.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByValue) |
¿Aceptar caracteres comodín? |
false |
-IPInterface<CimInstance>
Specifies the IP interface on which to set the 6to4 configuration.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByValue) |
¿Aceptar caracteres comodín? |
false |
-PassThru
Devuelve un objeto que representa el elemento con el que está trabajando. De forma predeterminada, este cmdlet no genera ningún resultado.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-PolicyStore<String>
Specifies the policy store that contains the configuration to set.
Los valores aceptables para este parámetro son los siguientes:
-- PersistentStore
-- ActiveStore
-- GPO
To set the configuration of a GPO, specify the GPO name using the following format: Domain\GPOName
You cannot use this parameter with the GPOSession parameter.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-RelayName<String>
Specifies a 6to4 relay name. If 6to4 connectivity is not available on the computer, the relay name setting has no effect.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
4 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-RelayState<State>
Configures the 6to4 relay state.
Los valores aceptables para este parámetro son los siguientes:
-- Default: If the host has link-local only IPv6 connectivity and a public IPv4 address, then 6to4 is enabled. If there is no global IPv6 address present and no global IPv4 address present, then the host does not have a 6to4 interface. If there is no global IPv6 address present but there is a global IPv4 address present, then the host has a 6to4 interface.
-- Enabled: If there is a global IPv4 address present, then the host has a 6to4 interface. If there is no global IPv4 address present, then the host does not have a 6to4 interface.
-- Disabled: 6to4 is turned off and connectivity with 6to4 is not available.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
5 |
Valor predeterminado |
false |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-ResolutionIntervalSeconds<UInt32>
Specifies the frequency for resolving the relay name. The 6to4 relay name resolution interval setting has no effect if there is no 6to4 connectivity available on the host.
Alias |
ResolutionInterval |
¿Requerido? |
false |
¿Posición? |
6 |
Valor predeterminado |
false |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-State<State>
Specifies the state behavior of 6to4.
Los valores aceptables para este parámetro son los siguientes:
-- Default: If the host has link-local only IPv6 connectivity and a public IPv4 address, then 6to4 is enabled. If there is no global IPv6 address present and no global IPv4 address present, then the host does not have a 6to4 interface. If there is no global IPv6 address present but there is a global IPv4 address present, then the host has a 6to4 interface.
-- Enabled: If there is a global IPv4 address present, then the host has a 6to4 interface. If there is no global IPv4 address present, then the host does not have a 6to4 interface.
-- Disabled: 6to4 is turned off and connectivity with 6to4 is not available.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
2 |
Valor predeterminado |
false |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-ThrottleLimit<Int32>
Especifica el número máximo de operaciones simultáneas que se pueden establecer para ejecutar el cmdlet. Si se omite este parámetro o es especifica un valor de 0
, Windows PowerShell ® calcula un límite óptimo para el cmdlet en función del número de cmdlets de CIM que se estén ejecutando en el equipo. El límite solo se aplica al cmdlet actual, no a la sesión ni al equipo.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-Confirm
Solicita confirmación antes de ejecutar el cmdlet.
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
falso |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-WhatIf
Muestra lo que sucedería si se ejecutara el cmdlet. El cmdlet no se ejecuta.
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
falso |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.
None
This cmdlet accepts no input objects.
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
Microsoft.Management.Infrastructure.CimInstance#root\StandardCimv2\MSFT_Net6to4Configuration
El objeto
Microsoft.Management.Infrastructure.CimInstance
es una clase contenedora que muestra objetos de Instrumental de administración de Windows (WMI). La ruta de acceso después del signo de número (#
) proporciona el espacio de nombres y el nombre de clase del objeto WMI subyacente.
When the Passthru parameter is specified, this cmdlet outputs a modified 6to4 configuration object.
Ejemplos
Example 1: Modify the relay name on the persistent store
This command sets the relay name to my6to4relay.com for 6to4 connectivity on the local persistent store.
PS C:\> Set-Net6to4Configuration -RelayName "my6to4relay.com"