|
| 1 | +--- |
| 2 | +external help file: Microsoft.Exchange.TransportMailflow-Help.xml |
| 3 | +applicable: Office 365 Security & Compliance Center |
| 4 | +title: New-DlpEdmSchema |
| 5 | +schema: 2.0.0 |
| 6 | +author: chrisda |
| 7 | +ms.author: chrisda |
| 8 | +ms.reviewer: |
| 9 | +monikerRange: "o365scc-ps" |
| 10 | +--- |
| 11 | + |
| 12 | +# New-DlpEdmSchema |
| 13 | + |
| 14 | +## SYNOPSIS |
| 15 | +This cmdlet is available only in the Office 365 Security & Compliance Center. For more information, see Office 365 Security & Compliance Center PowerShell (https://technet.microsoft.com/library/mt587091.aspx). |
| 16 | + |
| 17 | +Use the New-DlpEdmSchema cmdlet to create exact data match (EDM) data loss prevention (DLP) schemas in the Security & Compliance Center. |
| 18 | + |
| 19 | +For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax (https://technet.microsoft.com/library/bb123552.aspx). |
| 20 | + |
| 21 | +## SYNTAX |
| 22 | + |
| 23 | +``` |
| 24 | +New-DlpEdmSchema [-FileData] <Byte[]> [-WhatIf] [-Confirm] [<CommonParameters>] |
| 25 | +``` |
| 26 | + |
| 27 | +## DESCRIPTION |
| 28 | +For an explanation and example of the EDM schema, see Define the schema for your database of sensitive information |
| 29 | + (https://docs.microsoft.com/office365/securitycompliance/create-custom-sensitive-info-type-edm#define-the-schema-for-your-database-of-sensitive-information). |
| 30 | + |
| 31 | +You need to be assigned permissions in the Office 365 Security & Compliance Center before you can use this cmdlet. For more information, see Permissions in Office 365 Security & Compliance Center (https://go.microsoft.com/fwlink/p/?LinkId=511920). |
| 32 | + |
| 33 | +## EXAMPLES |
| 34 | + |
| 35 | +### -------------------------- Example 1 -------------------------- |
| 36 | +``` |
| 37 | +$edmSchemaXml = Get-Content "C:\My Documents\edm.xml" -Encoding Byte -ReadCount 0; New-DlpEdmSchema -FileData $edmSchemaXml -Confirm:$true |
| 38 | +``` |
| 39 | + |
| 40 | +This example creates a new DLP EDM schema. The first command reads the schema in the XML file to a variable, and the second command uses that information to create the DLP EDM schema. |
| 41 | + |
| 42 | +## PARAMETERS |
| 43 | + |
| 44 | +### -FileData |
| 45 | +The FileData parameter specifies the DLP EDM schema that you want to import. |
| 46 | + |
| 47 | +A valid value for this parameter requires you to read the file to a byte-encoded object using the Get-Content cmdlet. For example, \(\[Byte\[\]\]\(Get-Content -Encoding Byte -Path "C:\\My Documents\\\<filename\>" -ReadCount 0\)\). |
| 48 | + |
| 49 | +```yaml |
| 50 | +Type: Byte[] |
| 51 | +Parameter Sets: (All) |
| 52 | +Aliases: |
| 53 | +Applicable: Office 365 Security & Compliance Center |
| 54 | +Required: True |
| 55 | +Position: 0 |
| 56 | +Default value: None |
| 57 | +Accept pipeline input: True (ByValue) |
| 58 | +Accept wildcard characters: False |
| 59 | +``` |
| 60 | +
|
| 61 | +### -Confirm |
| 62 | +The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on if the cmdlet requires confirmation before proceeding. |
| 63 | +
|
| 64 | +- Destructive cmdlets (for example, Remove-\* cmdlets) have a built-in pause that forces you to acknowledge the command before proceeding. For these cmdlets, you can skip the confirmation prompt by using this exact syntax: -Confirm:$false. |
| 65 | +
|
| 66 | +- Most other cmdlets (for example, New-\* and Set-\* cmdlets) don't have a built-in pause. For these cmdlets, specifying the Confirm switch without a value introduces a pause that forces you acknowledge the command before proceeding. |
| 67 | +
|
| 68 | +```yaml |
| 69 | +Type: SwitchParameter |
| 70 | +Parameter Sets: (All) |
| 71 | +Aliases: cf |
| 72 | +Applicable: Office 365 Security & Compliance Center |
| 73 | +Required: False |
| 74 | +Position: Named |
| 75 | +Default value: None |
| 76 | +Accept pipeline input: False |
| 77 | +Accept wildcard characters: False |
| 78 | +``` |
| 79 | +
|
| 80 | +### -WhatIf |
| 81 | +The WhatIf switch doesn't work in the Office 365 Security & Compliance Center. |
| 82 | +
|
| 83 | +```yaml |
| 84 | +Type: SwitchParameter |
| 85 | +Parameter Sets: (All) |
| 86 | +Aliases: wi |
| 87 | +Applicable: Office 365 Security & Compliance Center |
| 88 | +Required: False |
| 89 | +Position: Named |
| 90 | +Default value: None |
| 91 | +Accept pipeline input: False |
| 92 | +Accept wildcard characters: False |
| 93 | +``` |
| 94 | +
|
| 95 | +### CommonParameters |
| 96 | +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216). |
| 97 | +
|
| 98 | +## INPUTS |
| 99 | +
|
| 100 | +### |
| 101 | +
|
| 102 | +## OUTPUTS |
| 103 | +
|
| 104 | +### |
| 105 | +
|
| 106 | +## NOTES |
| 107 | +
|
| 108 | +## RELATED LINKS |
| 109 | +
|
| 110 | +[Online Version](https://docs.microsoft.com/powershell/module/exchange/policy-and-compliance-dlp/New-DlpEdmSchema) |
| 111 | +
|
| 112 | +[Create custom sensitive information types with Exact Data Match based classification](https://docs.microsoft.com/office365/securitycompliance/create-custom-sensitive-info-type-edm) |
0 commit comments