This is the built-in help made by Microsoft for the command 'Remove-NetIPsecMainModeCryptoSet', in PowerShell version 3 - as retrieved from
Windows version 'Microsoft Windows Server 2012 Standard' 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.
Deletes any main mode cryptographic sets that match the specified criteria.
Remove-NetIPsecMainModeCryptoSet [-All [<SwitchParameter>]] [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-GPOSession <String>]
[-PassThru [<SwitchParameter>]] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-TracePolicyStore [<SwitchParameter>]] [-Confirm
[<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Remove-NetIPsecMainModeCryptoSet [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-PassThru [<SwitchParameter>]] [-ThrottleLimit
<Int32>] -InputObject <CimInstance[]> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Remove-NetIPsecMainModeCryptoSet [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-Description <String[]>] [-DisplayGroup
<String[]>] [-ForceDiffieHellman <Boolean[]>] [-GPOSession <String>] [-Group <String[]>] [-MaxMinutes <UInt32[]>] [-MaxSessions <UInt32[]>]
[-PassThru [<SwitchParameter>]] [-PolicyStore <String>] [-PolicyStoreSource <String[]>] [-PolicyStoreSourceType <PolicyStoreType[]>]
[-PrimaryStatus <PrimaryStatus[]>] [-Status <String[]>] [-ThrottleLimit <Int32>] [-TracePolicyStore [<SwitchParameter>]] [-Confirm
[<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Remove-NetIPsecMainModeCryptoSet [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PassThru
[<SwitchParameter>]] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-TracePolicyStore [<SwitchParameter>]] -DisplayName <String[]>
[-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Remove-NetIPsecMainModeCryptoSet [-Name] <String[]> [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-GPOSession <String>]
[-PassThru [<SwitchParameter>]] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-TracePolicyStore [<SwitchParameter>]] [-Confirm
[<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Remove-NetIPsecMainModeCryptoSet [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PassThru
[<SwitchParameter>]] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-TracePolicyStore [<SwitchParameter>]] -AssociatedNetIPsecMainModeRule
<CimInstance> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
The Remove-NetIPsecMainModeCryptoSet cmdlet permanently deletes one or more main mode cryptographic sets from the specified policy store.
This cmdlet gets one or more cryptographic sets to be deleted with the Name parameter (default), the DisplayName parameter, the Group
parameter, or by associated IPsec rule. The resulting queried set is removed from the computer.
<
Get-NetIPsecMainModeRule
New-NetIPsecMainModeCryptoSet
Open-NetGPO
Save-NetGPO
Set-NetIPsecMainModeCryptoSet
New-GPO
<
EXAMPLE 1
PS C:\> Remove-NetIPsecMainModeCryptoSet
This example removes all of the static local main mode cryptographic sets. This is useful for removing any policy that conflicts with the
domain GPO.
EXAMPLE 2
PS C:\> Remove-NetIPsecMainModeCryptoSet -DisplayName "MM Encryption"
This example deletes a set based on a localized name.
EXAMPLE 3
PS C:\> Remove-NetIPsecMainModeCryptoSet –ForceDiffieHellman $true
This example removes all of the main mode cryptographic sets that require the Diffie-Hellman key exchange.
EXAMPLE 4
PS C:\> $ipsMMRule = Get-NetIPsecMainModeRule –DisplayName "Main Mode Authenticate Computer"
PS C:\> Remove-NetIPsecMainModeCryptoSet – InputObject $ipsMMRule
This example removes all of the main mode cryptographic sets that are associated with a main mode rule.