Deleting Profile Folders - Access is Denied RRS feed

  • Question

  • Hi all! So here's my dilemma... I'm attempting to delete old profile folders from machines with a limited amount of remaining space on their C:\. This came about when we found a machine with 1GB of memory left and approximately 240 stale profiles. I'm wondering what the best way to accomplish this is. I've attempted to simply delete the folders from the machine but get an "access to the path $PATH is denied." I've verified that I'm the owner and that I'm running as an admin but to no success. Is this the way I even want to do this???

    (I realize that this can be done far easier on newer versions of PS but I'm the only one with an updated version, which I'm not sure if I'm even allowed to have...*Shhhhhh*.... So I've been trying to write for PS 2.0. Which could possibly be why I'm running into so many issues. The script is being written for a different group of people to make their lives easier.)

    Any Help would be greatly appreciated!

    Thursday, April 30, 2015 1:07 PM


All replies