Skip to content

Commit 506abe6

Browse files
VSC CI Serviceappveyor
authored andcommitted
Update azure powershell aip docs.
1 parent f049a48 commit 506abe6

File tree

2 files changed

+63
-62
lines changed

2 files changed

+63
-62
lines changed

azure/RMSProtection/vlatest/Get-AIPFileStatus.md

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
external help file: RMSProtection.dll-Help.xml
2+
external help file: AIP.dll-Help.xml
33
online version: https://go.microsoft.com/fwlink/?linkid=838765
44
schema: 2.0.0
5-
updated_at: 1/11/2017 5:45 PM
6-
ms.date: 1/11/2017
5+
updated_at: 1/12/2017 4:34 AM
6+
ms.date: 1/12/2017
77
content_git_url: https://github.com/Azure/azure-docs-powershell-aip/blob/master/Azure%20Information%20Protection/RMSProtection/vlatest/Get-AIPFileStatus.md
88
original_content_git_url: https://github.com/Azure/azure-docs-powershell-aip/blob/master/Azure%20Information%20Protection/RMSProtection/vlatest/Get-AIPFileStatus.md
9-
gitcommit: https://github.com/Azure/azure-docs-powershell-aip/blob/5e9c7fbfa246efb6b1cab95a5b57b04215fe104c/Azure%20Information%20Protection/RMSProtection/vlatest/Get-AIPFileStatus.md
9+
gitcommit: https://github.com/Azure/azure-docs-powershell-aip/blob/17f208a8470fb1bd1e6e1fac208371883ae62b19/Azure%20Information%20Protection/RMSProtection/vlatest/Get-AIPFileStatus.md
1010
ms.topic: reference
1111
ms.prod: powershell
1212
ms.technology: Azure Powershell
@@ -21,7 +21,7 @@ ms.service: rights-management
2121
# Get-AIPFileStatus
2222

2323
## SYNOPSIS
24-
Get the Azure Information Protection label and protection associated with a file
24+
Get the Azure Information Protection label and protection information for a specified file or files.
2525

2626
## SYNTAX
2727

@@ -30,16 +30,16 @@ Get-AIPFileStatus [-Path] <String[]> [<CommonParameters>]
3030
```
3131

3232
## DESCRIPTION
33-
The **Get-AIPFileStatus** cmdlet returns the Azure Information Protection status of a specified file or all files in a specified path. This status includes whether the file has a label, and if it does, the label name, who applied it, how it was applied, and when. In addition, the status includes whether the file is protected by Rights Management, and it is, what Rights Management template was used to apply this protection.
33+
The **Get-AIPFileStatus** cmdlet returns the Azure Information Protection status of a specified file or all files in a specified path. This status includes whether the file has a label, and if it does, the label name, who applied it, how it was applied, and when. In addition, the status includes whether the file is protected by Rights Management, and if it is, what Rights Management template was used to apply this protection.
3434

35-
Note: This cmdlet is currently installed as part of the preview version of the Azure Information Protection client, and not the RMS Protection tool.
35+
Note: This cmdlet is currently installed as part of the preview version of the Azure Information Protection client, and is not included in the RMS Protection tool.
3636

3737
## EXAMPLES
3838

39-
### Example 1: Get label and protection status on a single file.
39+
### Example 1: Get the label and protection status of a single file
4040
```
41-
PS C:\> Get-AIPFileStatus -Path \\finance\projects\project.docx
42-
FileName : \\finance\projects\project.docx
41+
PS C:\> Get-AIPFileStatus -Path \\Finance\Projects\Project.docx
42+
FileName : \\Finance\Projects\Project.docx
4343
IsLabelled : True
4444
MainLabelId : 074e257c-1234-1234-1234-34a182080e71
4545
MainLabelName : Confidential
@@ -54,33 +54,34 @@ RMSTemplateId : e6ee2481-1234-1234-1234-f744eacd53b0
5454
RMSTemplateName : Contoso - Confidential Finance
5555
```
5656

57-
This command provides information about a file that is labeled as Confidential \ Finance Group. This file was labeled manually by John. This file is also encrypted.
57+
This command provides information about a file that is labeled as Confidential \ Finance Group. This file was labeled manually by John and it is also protected by using the Rights Management template, "Contoso - Confidential Finance".
5858

59-
### Example 2: Get label and protection status on all files stored in a specific folder. Export the results to a CSV file.
59+
### Example 2: Get the label and protection status for all files in a folder and export the results to a CSV file
6060
```
61-
PS C:\> Get-AIPFileStatus -Path \\finance\projects\ | Export-Csv c:\reports\AIP-status.csv
61+
PS C:\> Get-AIPFileStatus -Path \\Finance\Projects\ | Export-Csv C:\Reports\AIP-status.csv
6262
```
6363

64-
This example provides the label and protection information about all files under the projects folder (and its entire subfolders) in the finance server. The results are exported to AIP-status.CSV
64+
This command gets the label and protection information of all files on the Finance server, in the Projects folder and any of its subfolders. The results are exported to the file named AIP-status.csv so that they can be more easily searched and sorted. If a previous report exists in C:\Reports\Report.csv, it will be overwritten.
6565

66-
### Example 3: List all “Confidential” files that are stored in a specific folder. Export the results to a CSV file.
66+
### Example 3: List the files labeled "Confidential" and export the results to a CSV file
6767
```
68-
PS C:\> Get-AIPFileStatus -Path \\finance\projects\ | Where-Object {$_.MainLabelName -eq 'Confidential'} | Export-Csv c:\reports\AIP-status.csv
68+
PS C:\> Get-AIPFileStatus -Path \\Finance\Projects\ | Where-Object {$_.MainLabelName -eq 'Confidential'} | Export-Csv C:\Reports\AIP-status.csv
6969
```
7070

71-
This example provides information about all Confidential files stored in the “projects” folder (and its entire subfolders) in the finance server. The results are exported to AIP-status.CSV
71+
This command gets the label and protection information for just the files that are labeled "Confidential" (regardless of their sub-label) on the Finance server, in the Projects folder and any of its subfolders. The results are exported to the file named AIP-status.csv so that they can be more easily searched and sorted. If a previous report exists in C:\Reports\Report.csv, it will be overwritten.
7272

73-
### Example 4: Count how many "Confidential" files are stored in a folder.
73+
### Example 4: Count of files with a "Confidential" label
7474
```
75-
PS C:\> (Get-AIPFileStatus -Path c:\projects\ | Where-Object {$_.MainLabelName -eq 'Confidential'}).Count
75+
PS C:\> (Get-AIPFileStatus -Path C:\Projects\ | Where-Object {$_.MainLabelName -eq 'Confidential'}).Count
76+
5
7677
```
7778

78-
This example provides the number of all "Confidential" files stored in the c:\projects folder (and its entire subfolders)
79+
This command provides the number of files with the "Confidential" label that are in the C:\Projects folder and any of its subfolders. In this example, 5 files are found.
7980

8081
## PARAMETERS
8182

8283
### -Path
83-
Specifies a local or network path to one or more locations. (examples: c:\folder\ c:\folder\filename, \\server\folder). Wildcards are not permitted.
84+
Specifies a local or network path to the files for which you want to get the label and protection information. Examples include C:\Folder\, C:\Folder\Filename, \\Server\Folder). Wildcards are not supported.
8485

8586
```yaml
8687
Type: String[]

azure/RMSProtection/vlatest/Set-AIPFileLabel.md

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
external help file: RMSProtection.dll-Help.xml
2+
external help file: AIP.dll-Help.xml
33
online version: https://go.microsoft.com/fwlink/?linkid=838766
44
schema: 2.0.0
5-
updated_at: 1/11/2017 5:45 PM
6-
ms.date: 1/11/2017
5+
updated_at: 1/12/2017 5:06 PM
6+
ms.date: 1/12/2017
77
content_git_url: https://github.com/Azure/azure-docs-powershell-aip/blob/master/Azure%20Information%20Protection/RMSProtection/vlatest/Set-AIPFileLabel.md
88
original_content_git_url: https://github.com/Azure/azure-docs-powershell-aip/blob/master/Azure%20Information%20Protection/RMSProtection/vlatest/Set-AIPFileLabel.md
9-
gitcommit: https://github.com/Azure/azure-docs-powershell-aip/blob/5e9c7fbfa246efb6b1cab95a5b57b04215fe104c/Azure%20Information%20Protection/RMSProtection/vlatest/Set-AIPFileLabel.md
9+
gitcommit: https://github.com/Azure/azure-docs-powershell-aip/blob/50aaa0df9c71a4ad64fd6d83326658b99d955345/Azure%20Information%20Protection/RMSProtection/vlatest/Set-AIPFileLabel.md
1010
ms.topic: reference
1111
ms.prod: powershell
1212
ms.technology: Azure Powershell
@@ -21,7 +21,7 @@ ms.service: rights-management
2121
# Set-AIPFileLabel
2222

2323
## SYNOPSIS
24-
Sets a file label, and sets the RMS protection according to the policy
24+
Sets or removes an Azure Information Protection label for a file, and sets the protection according to the label configuration.
2525

2626
## SYNTAX
2727

@@ -36,76 +36,76 @@ Set-AIPFileLabel [-JustificationMessage <String>] [-RemoveLabel] [-Path] <String
3636
```
3737

3838
## DESCRIPTION
39-
Use the **Set-AIPFileLabel** cmdlet to apply or clear a label using Azure Information Protection. Upon label action this cmdlet may apply or remove RMS protection automatically – based on the protection action that is associated with this label on your Azure Information Protection policy.
39+
The **Set-AIPFileLabel** cmdlet sets or removes an Azure Information Protection label for one or more files. This action can automatically apply or remove protection when labels are configured for Rights Management protection in the Azure Information Protection policy. When the command runs successfully, any existing label or protection is replaced.
40+
41+
Note: This cmdlet is currently installed as part of the preview version of the Azure Information Protection client, and is not included in the RMS Protection tool..
4042

4143
## EXAMPLES
4244

43-
### Example 1: Apply "Confidential" label on all files in a folder (and its entire subfolders)
45+
### Example 1: Apply the "Confidential" label to all files in a folder and any of its subfolders
4446
```
45-
PS C:\> Set-AIPFileLabel -Path c:\projects\ -LabelId d9f23ae3-1324-1234-1234-f515f824c57b
47+
PS C:\> Set-AIPFileLabel -Path C:\Projects\ -LabelId d9f23ae3-1324-1234-1234-f515f824c57b
4648
FileName Status Comment
4749
-------- ------ ------------
48-
C:\projects\project1.docx Success
49-
C:\projects\datasheet.pdf Success
50-
C:\projects\image.jpg Success
51-
C:\projects\analysis.xlsx Skipped Justification required
52-
C:\projects\dashboard.xlsx Success
50+
C:\Projects\Project1.docx Success
51+
C:\Projects\Datasheet.pdf Success
52+
C:\Projects\Image.jpg Success
53+
C:\Projects\Analysis.xlsx Skipped Justification required
54+
C:\Projects\Dashboard.xlsx Success
5355
```
5456

55-
This command sets a Confidential label on all files in the Projects folder, and its entire subfolders.
56-
Files labeled Confidential may become encrypted (in place) if your Azure Information Protection policy applies encryption for files labeled Confidential.
57-
The labeling and encryption owner is the user that is signed-in to the device running this PowerShell command.
58-
Note that in this example the analysis.xlsx file was not labeled, as it is currently classified with a higher label, and a justification was not provided in the cmdlet.
57+
This command sets a label named "Confidential" on all files in the Projects folder and any of its subfolders.
58+
59+
If the Confidential label is configured in the Azure Information Protection policy to apply Rights Management protection, the files that were successfully labeled with this command will also be protected. In this case, the Rights Management owner (who has the Rights Management Full Control permission) of these files is the user who ran the PowerShell command.
5960

61+
In our example, one file was not labeled (skipped) with the comment that justification is required. This might be the intended outcome to ensure that a file with a higher classification label or protection isn't accidentally overwritten with a lower classification label or has protection removed. To enable this safeguard, the Azure Information Protection policy must be configured to require justification for lowering the classification label, removing a label, or removing protection. When you then run this command without the **JustificationMessage** parameter and the label triggers justification, the file is skipped.
6062

61-
### Example 2: Apply "Confidential" label on a single file, providing business justification, in case that the file is classified with a higher label
63+
### Example 2: Apply the "Confidential" label to a single file, which requires justification
6264
```
63-
PS C:\> Set-AIPFileLabel -Path \\finance\projects\analysis.xlsx -LabelId d9f23ae3-1324-1234-1234-f515f824c57b -JustificationMessage 'The previous label no longer applies'
65+
PS C:\> Set-AIPFileLabel -Path \\Finance\Projects\Analysis.xlsx -LabelId d9f23ae3-1324-1234-1234-f515f824c57b -JustificationMessage 'The previous label no longer applies'
6466
FileName Status Comment
6567
-------- ------ ------------
6668
\\finance\projects\analysis.xlsx Success
6769
```
6870

69-
This command labels a file as “Confidential” using a business justification.
70-
This justification is used and logged when required by the policy, on cases of downgrade the label, remove the protection or clear the label.
71+
This command sets the "Confidential" label for a file that is already labeled with a higher classification label. The Azure Information Protection policy is configured to require justification for lowering the classification label, removing a label, or removing protection. Because the command includes a justification message, the new label is successfully applied and the justification reason is logged on the local computer.
7172

72-
### Example 3: Apply Internal label on all files that are currently NOT labeled
73+
### Example 3: Apply the "Internal" label to all files that do not currently have a label
7374
```
74-
PS C:\> Get-AIPFileStatus -Path \\finance\projects\ | where {$_.IsLabelled -eq $False} | Set-AIPFileLabel -LabelId d9f23ae3-4321-4321-4321-f515f824c57b
75+
PS C:\> Get-AIPFileStatus -Path \\Finance\Projects\ | where {$_.IsLabelled -eq $False} | Set-AIPFileLabel -LabelId d9f23ae3-4321-4321-4321-f515f824c57b
7576
FileName Status Comment
7677
-------- ------ ------------
77-
\\finance\projects\image.jpg Success
78-
\\finance\projects\pricelist.pdf Success
79-
\\finance\projects\announcement.docx Success
80-
\\finance\projects\analysis.xlsx Success
78+
\\Finance\Projects\Image.jpg Success
79+
\\Finance\Projects\Pricelist.pdf Success
80+
\\Finance\Projects\Announcement.docx Success
81+
\\Finance\Projects\Analysis.xlsx Success
8182
```
8283

83-
This command identifies all files that are not labeled using the Get-AIPFileStatus cmdlet.
84-
These files are then labeled using the Set-AIPFilelabel cmdlet.
84+
This command first identifies all files that are not labeled by using the Get-AIPFileStatus cmdlet. Then, these files are labeled by specifying the "Internal" label by its ID.
8585

86-
### Example 4: Apply "Confidential" label on DOCX files that are not labeled
86+
### Example 4: Apply the "Confidential" label to .docx files that are not labeled
8787
```
8888
PS C:\> Get-ChildItem C:\Projects\*.docx -File -Recurse | Get-AIPFileStatus | where {$_.IsLabelled -eq $False} | Set-AIPFileLabel -LabelId d9f23ae3-1234-1234-1234-f515f824c57b
8989
FileName Status Comment
9090
-------- ------ ------------
91-
C:\Projects\analysis.docx Success
92-
C:\Projects\projects.docx Success
91+
C:\Projects\Analysis.docx Success
92+
C:\Projects\Projects.docx Success
9393
```
9494

95-
This example first identifies all DOCX files in the c:\Projects folder (and its subfolders) using Get-Child-Item, then finds the files that are not labeled using the Get-AIPFileStatus cmdlet.
96-
These files are then labeled using the Set-AIPFilelabel cmdlet.
97-
Note: Get-Child-Item can be used with Get-AIPFileStatus as the FullName is an alias for Path.
95+
This command first identifies all .docx files in the C:\Projects folder (and its subfolders) by using Get-Child-Item, then finds from these files the ones that are not labeled by using the Get-AIPFileStatus cmdlet. The resulting files are then labeled by specifying the "Confidential" label by its ID.
96+
97+
Note: This command makes use of the Path alias of FullName, so that Get-Child-Item can be used with Get-AIPFileStatus.
9898

99-
### Example 5: Remove a label from a file.
99+
### Example 5: Remove a label from a file
100100
```
101-
PS C:\> Set-AIPFileLabel C:\Projects\analysis.docx -RemoveLabel -JustificationMessage 'The previous label no longer applies'
101+
PS C:\> Set-AIPFileLabel C:\Projects\Analysis.docx -RemoveLabel -JustificationMessage 'The previous label no longer applies'
102102
103103
FileName Status Comment
104104
-------- ------ ------------
105-
C:\Projects\analysis.docx Success
105+
C:\Projects\Analysis.docx Success
106106
```
107107

108-
This command removes the Azure Information Protection label from C:\Projects\analysis.docx.
108+
This command removes the existing label from the file named C:\Projects\Analysis.docx, and specifies a justification message that is required because the Azure Information Protection policy setting is enabled that requires justification for lowering the classification label, removing a label, or removing protection.
109109

110110
## PARAMETERS
111111

@@ -143,7 +143,7 @@ Accept wildcard characters: False
143143
```
144144
145145
### -Path
146-
Specifies the path to the file or files to which you want to apply labels. When the path includes folders and subfolders, all files in these folders are automatically included. Wildcards are not supported.
146+
Specifies a local or network path to the file or files to which you want to apply labels. Examples include C:\Folder\, C:\Folder\Filename, \\Server\Folder). Wildcards are not supported.
147147
148148
```yaml
149149
Type: String[]
@@ -158,7 +158,7 @@ Accept wildcard characters: False
158158
```
159159
160160
### -RemoveLabel
161-
Indicates that this cmdlet removes labels.
161+
Removes any label that has been applied to a file.
162162
163163
```yaml
164164
Type: SwitchParameter

0 commit comments

Comments
 (0)