I wanting to delete all files and folders from the desktop under all window profiles.
I also want to keep a few .ppt that have specific names for under each profile. Below is what I have tried and using -exclude "AppV" as an example. Nothing works.
Remove-item -Path C:\$users\desktop\*.* -exclude "AppV" -force -erroraction 'silentlycontinue'
Remove-item c:\users\wcampbell\desktop\* -exclude "AppV" -force -erroraction 'silentlycontinue'
Remove-item C:\$users\desktop -exclude "AppV" -force -erroraction 'silentlycontinue'