Showing results for Existing Cmdlet - PowerShell Community

Apr 21, 2021
6
0

Borrowing a built-in PowerShell command to create a temporary folder

Sean Kearney
Sean Kearney

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 right now...

FunctionFun trickExisting Cmdlet