You are currently viewing PowerShell Resolve-Path Cmdlet

PowerShell Resolve-Path Cmdlet

PowerShell Resolve-Path Cmdlet

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

In the last blog post, we have discussed Join-Path cmdlet in PowerShell.

https://cloudaffaire.com/powershell-join-path-cmdlet/

In this blog post, we will discuss Resolve-Path cmdlet in PowerShell. You can use Resolve-Path cmdlet to check if a path exists to the specified location defined by the path parameter. Resolve-Path cmdlet can be used to resolve the path of a file, directory, or registry key.

Resolve-Path Cmdlet Syntax:

Resolve-Path Cmdlet Argument List:

  • Credential: To impersonate another user or elevate your credentials
  • LiteralPath: Specifies the path to be resolved. The value of the LiteralPath parameter is used exactly as typed. No characters are interpreted as wildcard characters.
  • Path: Specifies the main path (or paths) to which the child-path is appended. Wildcards are permitted.
  • Relative: Indicates that this cmdlet returns a relative path.
  • UseTransaction: Includes the command in the active transaction. This parameter is valid only when a transaction is in progress.

PowerShell Resolve-Path Cmdlet:

Hope you have enjoyed this article. In the next blog post, we will discuss Get-Service cmdlet in PowerShell.

To Set more details on PowerShell, kindly follow below official documentation

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about?view=powershell-5.1

 

Leave a Reply