Skip to main content
Microsoft
PowerShell Community
PowerShell Community
  • Home
  • DevBlogs
    • Visual Studio
    • Visual Studio Code
    • Visual Studio for Mac
    • DevOps
    • Developer support
    • CSE Developer
    • Engineering@Microsoft
    • Azure SDK
    • IoT
    • Command Line
    • Perf and Diagnostics
    • Dr. International
    • Notification Hubs
    • Math in Office
    • DirectX
    • PIX
    • SurfaceDuo
    • Startups
    • Sustainable Engineering
    • Windows AI Platform
    • C++
    • C#
    • F#
    • Visual Basic
    • TypeScript
    • PowerShell Community
    • PowerShell Team
    • Python
    • Q#
    • JavaScript
    • Java
    • Java Blog in Chinese
    • .NET
    • .NET MAUI
    • Blazor
    • ASP.NET
    • NuGet
    • Xamarin
    • #ifdef Windows
    • Apps for Windows
    • Azure Depth Platform
    • Azure Government
    • Bing Dev Center
    • Microsoft Edge Dev
    • Microsoft Azure
    • Microsoft 365 Developer
    • Old New Thing
    • Windows MIDI and Music dev
    • Windows Search Platform
    • Azure Cosmos DB
    • Azure Data Studio
    • Azure SQL Database
    • OData
    • Revolutions R
    • SQL Server Data Tools

    PowerShell Community

    A place for the community to learn PowerShell and share insights

    New Purpose - PowerShell Community

    Borrowing a built-in PowerShell command to create a temporary folder
    Borrowing a built-in PowerShell command to create a temporary folder
    April 21, 2021 Apr 21, 2021 04/21/21
    Sean K
    Q: Hey I have a question for you. It seems silly and I know I could probably put something together with Get-Random. But can you think of another way to create a temporary folder with a random name in PowerShell? Ideally, I'd like it to be in a user's own "Temporary Folder" is possible. A: We sure can! If Doctor Scripto was sitting here ...

    6Existing CmdletFun trickFunction
    Topics
    .NETACLActive DirectoryActiveDirectoryADAnnouncementArrayBlog newsCaps LockClipboardcmdletconfigurationcredentialsCrescendoDefault Parameter valuesDevOpsEdgeErrorActionEventsExisting CmdletExplorerExplorer PreviewFileFileSystemWatcherFormatFormatEnumerationLimit variableFun trickFunctionGitjsonlocal userslogon scriptsModulenetstatnetworknetworkingNew PurposeNICoutputoutput handlerparametersparsingparsing stringspasswordsPowerShellPreference VariablesprofileProgressproviderregistryScripting Guys UpdateSecretManagementsecuritystringTest-PathToUpper()VBScriptVerbosevssadminWMIWMI EventingXML
    Top Bloggers

    @DoctorDNS
    PowerShell Evangelist

    Sean Wheeler
    Sr. Content Developer for PowerShell

    Faris Malaeb
    External Author

    James O'Neill
    Freelance IT Consulant

    Links
    • About this blog
    • How to contribute to the blog
    • PowerShell Team blog
    • Scripting blog (retired)

    Stay informed

    Login
    Code Block
    What's new
    • Surface Pro 8
    • Surface Laptop Studio
    • Surface Pro X
    • Surface Go 3
    • Surface Duo 2
    • Surface Pro 7+
    • Windows 11 apps
    • HoloLens 2
    Microsoft Store
    • Account profile
    • Download Center
    • Microsoft Store support
    • Returns
    • Order tracking
    • Virtual workshops and training
    • Microsoft Store Promise
    • Flexible Payments
    Education
    • Microsoft in education
    • Devices for education
    • Microsoft Teams for Education
    • Microsoft 365 Education
    • Education consultation appointment
    • Educator training and development
    • Deals for students and parents
    • Azure for students
    Business
    • Microsoft Cloud
    • Microsoft Security
    • Azure
    • Dynamics 365
    • Microsoft 365
    • Microsoft Advertising
    • Microsoft Industry
    • Microsoft Teams
    Developer & IT
    • Developer Center
    • Documentation
    • Microsoft Learn
    • Microsoft Tech Community
    • Azure Marketplace
    • AppSource
    • Microsoft Power Platform
    • Visual Studio
    Company
    • Careers
    • About Microsoft
    • Company news
    • Privacy at Microsoft
    • Investors
    • Diversity and inclusion
    • Accessibility
    • Security
    English (United States)
    • Sitemap
    • Contact Microsoft
    • Privacy
    • Manage cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2022