PowerTip: Use PowerShell to Find Temp User Directory

Summary: Use Windows PowerShell to find the temporary user directory.

Hey, Scripting Guy! Question How can I use Windows PowerShell to find location of my temporary user directory?

 Hey, Scripting Guy! Answer Use the GetTempPath static method from the System.IO.Path .NET Framework class:


Comments (1)

  1. AllanM says:

    $env:temp also picks it from the environment with no .NET calls

Skip to main content