Question Help with a PowerShell 5.1 script

rockerrb3

Honorable
Dec 1, 2016
125
1
10,595
I need a script that will delete all the folders called "temp" and "Temp" from a folder and all it's child folders.

I'm using Windows PowerShell 5.1

Write one for me please.
 

Ralston18

Titan
Moderator
No, we cannot write that script for you.

Forum rules prohibit doing homework. Whether or not it is actually homework. We have no way to really know the truth of the matter.

What you must do is write your own script, test it, and determine if there are problems.

If there are problems post your script along with what you believe may be the problem and list potential solutions.

That is how you need to proceed here.