Hello. Got thrown into some Powershell work this week and it’s been a long time since I’ve been invovled in this at all. Looking for some help on some PS scripting. I’m taking over a closed network in a room with 25 machines talking to a single server. I’d like to get to run a PS to empty the recycle bins, on the machines (each of which only have one profile, but could read the machine names from a csv file) then clean out all data from the profiles, similar to delprof2. Now I have delprof2 already working on the profiles, so even though I’d like to combine them, a single PS to delete the recycle bins first would be great. I’ve googled and tried about a dozen different scripts and none are working. The laptops all run windows 10. Thanks for your assistance. I’m about 10 hours into this and not getting any closer to a solution.appreciate the help.<\/p>\n
C<\/p>","upvoteCount":3,"answerCount":7,"datePublished":"2018-05-02T14:50:47.000Z","author":{"@type":"Person","name":"chrisda2","url":"https://community.spiceworks.com/u/chrisda2"},"suggestedAnswer":[{"@type":"Answer","text":"
Hello. Got thrown into some Powershell work this week and it’s been a long time since I’ve been invovled in this at all. Looking for some help on some PS scripting. I’m taking over a closed network in a room with 25 machines talking to a single server. I’d like to get to run a PS to empty the recycle bins, on the machines (each of which only have one profile, but could read the machine names from a csv file) then clean out all data from the profiles, similar to delprof2. Now I have delprof2 already working on the profiles, so even though I’d like to combine them, a single PS to delete the recycle bins first would be great. I’ve googled and tried about a dozen different scripts and none are working. The laptops all run windows 10. Thanks for your assistance. I’m about 10 hours into this and not getting any closer to a solution.appreciate the help.<\/p>\n
C<\/p>","upvoteCount":3,"datePublished":"2018-05-02T14:50:47.000Z","url":"https://community.spiceworks.com/t/ps-script-to-delete-recycle-bin-on-network-cp-iters/649384/1","author":{"@type":"Person","name":"chrisda2","url":"https://community.spiceworks.com/u/chrisda2"}},{"@type":"Answer","text":"
Welcome!<\/p>\n
Have a read here:<\/p>\n