PowerShell Logo Small

Rename-NetIPsecMainModeRule



This is the built-in help made by Microsoft for the command 'Rename-NetIPsecMainModeRule', in PowerShell version 4 - as retrieved from Windows version 'Microsoft Windows 8.1 Enterprise' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Renames a single main mode rule.

SYNTAX


Rename-NetIPsecMainModeRule [-All] [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PassThru] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-TracePo
licyStore] -NewName <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Rename-NetIPsecMainModeRule [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PassThru] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-TracePolicySto
re] -AssociatedNetIPsecPhase1AuthSet <CimInstance> -NewName <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Rename-NetIPsecMainModeRule [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PassThru] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-TracePolicySto
re] -DisplayName <String[]> -NewName <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Rename-NetIPsecMainModeRule [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> -NewName <String> [-Confirm] [-Wha
tIf] [<CommonParameters>]
Rename-NetIPsecMainModeRule [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PassThru] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-TracePolicySto
re] -AssociatedNetIPsecMainModeCryptoSet <CimInstance> -NewName <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Rename-NetIPsecMainModeRule [-Name] <String[]> [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PassThru] [-PolicyStore <String>] [-ThrottleLimit <Int32
>] [-TracePolicyStore] -NewName <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Rename-NetIPsecMainModeRule [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PassThru] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-TracePolicySto
re] -AssociatedNetFirewallProfile <CimInstance> -NewName <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Rename-NetIPsecMainModeRule [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PassThru] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-TracePolicySto
re] -AssociatedNetFirewallAddressFilter <CimInstance> -NewName <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Rename-NetIPsecMainModeRule [-AsJob] [-CimSession <CimSession[]>] [-Description <String[]>] [-DisplayGroup <String[]>] [-Enabled <Enabled[]>] [-GPOSession <String>] [
-Group <String[]>] [-MainModeCryptoSet <String[]>] [-PassThru] [-Phase1AuthSet <String[]>] [-PolicyStore <String>] [-PolicyStoreSource <String[]>] [-PolicyStoreSource
Type <PolicyStoreType[]>] [-PrimaryStatus <PrimaryStatus[]>] [-Status <String[]>] [-ThrottleLimit <Int32>] [-TracePolicyStore] -NewName <String> [-Confirm] [-WhatIf]
[<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Rename-NetIPsecMainModeRule cmdlet renames a main mode rule. When creating a rule, if the Name parameter is not specified, then a random GUID is used. This cmdlet
specifies a friendly and descriptive rule name. Note: The NewName parameter value must be unique since it identifies a single rule object on the computer.


This cmdlet gets a main mode rule to be renamed with the Name parameter (default), the DisplayName parameter, rule properties, or by associated filters or objects. Th
e Name parameter from the queried rule is replaced by the NewName parameter value. Note: Only one firewall can be renamed at a time when copying to the same policy st
ore. This is because only a single firewall can use the unique identifier, or name, specified by the NewName parameter.


To modify the localized DisplayName parameter, run the Set-NetIPsecMainModeRule cmdlet with the NewDisplayName parameter.


Names are unique identifiers for rules, similar to file names. Each name must be unique within a given policy store. If rules in multiple GPOs have the same name, the
n one of the GPOs will overwrite the other based upon GPO precedence. If a rule from a GPO has the same name as a rule from the persistent store, then the rule from t
he GPO will overwrite the local rule. This can be used to create overlapping policies, where the same rule is placed in multiple GPOs, and if both rules are applied t
o a computer, then the overlapping parts of the policies will only be created once. For this reason, two rules should only have the same name if the same function is
to be performed. For instance, if the built-in local firewall rules, such as Core Networking or File & Printer Sharing rules, are copied to a domain GPO, then any loc
al versions of those rules are overridden. However, if different GPOs specify different scopes with the same rule names, then the GPOs will become much harder to effe
ctively manage.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=288204
Copy-NetIPsecMainModeRule
Disable-NetIPsecMainModeRule
Get-NetFirewallAddressFilter
Get-NetFirewallProfile
Get-NetIPsecMainModeCryptoSet
Get-NetIPsecPhase1AuthSet
New-NetIPsecMainModeRule
Open-NetGPO
Save-NetGPO
Set-NetIPsecMainModeRule
New-NetIPsecAuthProposal
New-GPO

REMARKS

<

Examples


EXAMPLE 1

PS C:\>Rename-NetIPsecMainModeRule –Name "{ed8384a9-a78b-4d0d-8f3d-eb5615edb4a0}" -NewName "Tunnel Mode - Americas (DA Client)"



This example renames a main mode rule so that the identifier is descriptive and user friendly.