Table of contents
TOC
Collapse the table of content
Expand the table of content

New-TemporaryFile

JuanPablo Jofre|Last Updated: 7/6/2016
|
1 Contributor

Sometimes in your scripts, you must create a temporary file. You can easily do this with the New-TemporaryFile cmdlet:

PS C:\> $tempFile = New-TemporaryFile

PS C:\> $tempFile.FullName

C:\Users\slee\AppData\Local\Temp\tmp375.tmp

© 2017 Microsoft