COMMAND EVERYTHING.
Inspect metadata for one file at an exact path without expanding wildcard characters.
PowerShell · Risk: Low · Documentation VerifiedLast verified: 2026-10-26
Returns a provider item or reports a missing path. It does not return the complete contents of a file.
Get-Item [-Path] <string[]> [-Filter <string>] [-Include <string[]>]
[-Exclude <string[]>] [-Force] [-Credential <pscredential>]
[-Stream <string[]>] [<CommonParameters>]Copied 0 timesNo elevation is required for the in-memory examples. Filesystem operations require read or traversal access to the selected path.
PowerShell · 7.6; filesystem examples require the FileSystem provider
-LiteralPathPowerShell 7.6 with Microsoft.PowerShell.Management. For file examples, replace the sample path with an accessible file or directory.
Low risk for the supplied example. Protect file contents, paths, and returned system metadata. Review any modifications to the example before execution.
Get-Item -LiteralPath './config.json'Returns a provider item or reports a missing path. It does not return the complete contents of a file.
Sign in to keep your own command reference lists.
Explain or customize this command with AI