New-TempDir

Creates a new temporary directory with a random name.

Syntax

New-TempDir [<CommonParameters>]

Description

A new temporary directory is created in the current users temporary directory. The directory's name is created using the Path class's GetRandomFileName method.

Related Commands

EXAMPLE 1

New-TempDir

Returns the path to a temporary directory with a random name.