Tag Archives: Scripting Techniques

PowerShell: Temporary Folders

I was looking through some old code and came across an alternate way to create a temporary folder using PowerShell(or .NET if you want to be picky). So, I needed to create a temporary folder and constructed this line of code. … Continue reading

Posted in Scripting, Uncategorized | Tagged , , | 2 Comments

PowerShell: Test-IsAdmin

Sometimes I only want a PowerShell function to run only if the user has local admin rights. This can be tested for by looking for the admin token. Here’s a function I use. I then call the function in my code using … Continue reading

Posted in PowerShell | Tagged , , | Leave a comment

PowerShell: New-Password Function

OK, so I’ve been off the grid for a while now. But that doesn’t mean I’ve not been busy. Quite the opposite in fact. I’ve taken a year out from work on paternity with my baby Son. During this time, … Continue reading

Posted in PowerShell | Tagged , , | 10 Comments