You are currently viewing PowerShell Join-Path Cmdlet

PowerShell Join-Path Cmdlet

PowerShell Join-Path Cmdlet

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

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

In this blog post, we will discuss Join-Path cmdlet in PowerShell. You can use Join-Path cmdlet to combine a parent path and a child path. For example, suppose you have a file that you want to create some directory in all the drive, you can use the drive letter as parent path and your directory as a child path and combine them to get the paths necessary to create the directory in all drive. Join-Path can be used to create an absolute path for your files, directories, or registry keys.

Join-Path Cmdlet Syntax:

Join-Path Cmdlet Argument List:

  • Credential: To impersonate another user or elevate your credentials
  • ChildPath: Specifies the elements to append to the value of the Path parameter. Wildcards are permitted.
  • Path: Specifies the main path (or paths) to which the child-path is appended. Wildcards are permitted.
  • Resolve: Indicates that this cmdlet should attempt to resolve the joined path from the current provider.
  • UseTransaction: Includes the command in the active transaction. This parameter is valid only when a transaction is in progress.

PowerShell Join-Path Cmdlet:

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

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


Leave a Reply