PowerShell Logo Small

Get-FileIntegrity



This is the built-in help made by Microsoft for the command 'Get-FileIntegrity', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 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.

SYNOPSIS

Gets integrity information for a file on an ReFS volume.

SYNTAX


Get-FileIntegrity [-FileName] <String> [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-FileIntegrity cmdlet gets integrity information for a file on a Resilient File System (ReFS) volume.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=294434
Get-Item
Repair-FileIntegrity
Set-FileIntegrity

REMARKS

<

Examples


Example 1: Get file integrity information

PS C:\>Get-FileIntegrity -FileName 'H:\Temp\New Text Document.txt'
FileName Enabled Enforced

-------- ------- --------

H:\Temp\New Text Document.txt False True



This command gets file integrity information for a file.




Example 2: Get file integrity information for multiple files by using the pipeline

PS C:\>Get-Item -Path 'H:\Temp\*' | Get-FileIntegrity
FileName Enabled Enforced

-------- ------- --------

H:\Temp\New Text Document 07 21 False True

H:\Temp\New Text Document 08 19 False True

H:\Temp\New Text Document 08 22 False True

H:\Temp\New Text Document 09 07 False True



This command uses the Get-Item cmdlet to get all the files in the specified folder, and then passes them to the current cmdlet by using the pipeline operator. For more
information, type Get-Help Get-Item. The command gets file integrity information for all the files in the folder.