none
List all folders in all drives with sizes RRS feed

  • Question

  • I need to report all folders from all fixed drives with their sizes. I need to include files list and sizes as long as they are in the root drive. Also to include hidden files/folders.

    Can you show a link or script for this?

    Thank you,

    Friday, July 19, 2019 3:42 PM

Answers

  • To get to hidden folders you need to use the -force parameter. If you post what you are working on and what isn't working, I am sure someone will help, but we do not take requests and write scripts here.

    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful. (99,108,97,121,109,97,110,50,64,110,121,99,97,112,46,114,114,46,99,111,109|%{[char]$_})-join''

    • Marked as answer by HDragos Friday, July 26, 2019 12:55 PM
    Tuesday, July 23, 2019 2:45 PM

All replies

  • Look in the Gallery

    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful. (99,108,97,121,109,97,110,50,64,110,121,99,97,112,46,114,114,46,99,111,109|%{[char]$_})-join''

    Friday, July 19, 2019 4:36 PM
  • Hi Clayman2,

    Thank you for your reply, I looked in Gallery but did not find any that does that. 

    Also, for hidden files/folders it does not calculate size and I get access denied even if running ISE as admin when RDP to server (or in regular PS shell)

    Thank you,


    • Edited by HDragos Monday, July 22, 2019 10:25 PM
    Monday, July 22, 2019 10:24 PM
  • To get to hidden folders you need to use the -force parameter. If you post what you are working on and what isn't working, I am sure someone will help, but we do not take requests and write scripts here.

    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful. (99,108,97,121,109,97,110,50,64,110,121,99,97,112,46,114,114,46,99,111,109|%{[char]$_})-join''

    • Marked as answer by HDragos Friday, July 26, 2019 12:55 PM
    Tuesday, July 23, 2019 2:45 PM