PowerShell Logo Small

Remove-NetIPsecMainModeCryptoSet



This is the built-in help made by Microsoft for the command 'Remove-NetIPsecMainModeCryptoSet', 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

Deletes any main mode cryptographic sets that match the specified criteria.

SYNTAX


Remove-NetIPsecMainModeCryptoSet [-All] [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PassThru] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-Tr
acePolicyStore] [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-NetIPsecMainModeCryptoSet [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PassThru] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-TracePoli
cyStore] -DisplayName <String[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-NetIPsecMainModeCryptoSet [-AsJob] [-CimSession <CimSession[]>] [-Description <String[]>] [-DisplayGroup <String[]>] [-ForceDiffieHellman <Boolean[]>] [-GPOSes
sion <String>] [-Group <String[]>] [-MaxMinutes <UInt32[]>] [-MaxSessions <UInt32[]>] [-PassThru] [-PolicyStore <String>] [-PolicyStoreSource <String[]>] [-PolicyStor
eSourceType <PolicyStoreType[]>] [-PrimaryStatus <PrimaryStatus[]>] [-Status <String[]>] [-ThrottleLimit <Int32>] [-TracePolicyStore] [-Confirm] [-WhatIf] [<CommonPar
ameters>]
Remove-NetIPsecMainModeCryptoSet [-Name] <String[]> [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PassThru] [-PolicyStore <String>] [-ThrottleLimit <
Int32>] [-TracePolicyStore] [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-NetIPsecMainModeCryptoSet [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [-Confirm] [-WhatIf] [<Common
Parameters>]
Remove-NetIPsecMainModeCryptoSet [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PassThru] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [-TracePoli
cyStore] -AssociatedNetIPsecMainModeRule <CimInstance> [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


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 IPse
c rule. The resulting queried set is removed from the computer.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=288192
Get-NetIPsecMainModeRule
New-NetIPsecMainModeCryptoSet
Open-NetGPO
Save-NetGPO
Set-NetIPsecMainModeCryptoSet
New-GPO

REMARKS

<

Examples


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.