New Temp Dir
Last Modified: February 25, 2024 18:18 CEST

New-TempDir #

SYNOPSIS #

Creates a random folder in the temporary files directory

SYNTAX #

New-TempDir [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION #

Creates a randomly named folder in the temporary files directory and returns its path.

EXAMPLES #

Example 1:Creates a temp folder #

PS C:\> New-TempDir
# Output

C:\Users\John\AppData\Local\Temp\42e18af7-dae8-47ea-a09f-7382727f3611

Creates a randomly named folder in the temporary files directory and returns the path to this folder.

PARAMETERS #

CommonParameters #

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS #

None #

OUTPUTS #

System.Object #

NOTES #