7 lines
222 B
PowerShell
7 lines
222 B
PowerShell
$root="c:\users"
|
|
$users=get-childitem -path $root -exclude administrator, public
|
|
foreach ($user in $users)
|
|
{
|
|
$folder= join-path -path $user -childpath "downloads\*"
|
|
Get-childitem $folder -recurse | remove-item -force
|
|
} |