Shared drives inventory with Powershell script
The script starts by importing the ImportExcel module, which is required for exporting data to Excel.
It queries the system to obtain a list of all available drives (excluding the C drive) using the Get-WmiObject cmdlet. Drives with drive type 3 (local hard drives) are selected.
A data array is initialized to store the collected information.
For each drive, the script iterates through all subfolders in that drive using the Get-ChildItem cmdlet, filtering only directories (folders).
For each folder, the script gathers the following information:
Drive letter
Folder name
Folder size, calculated by summing the sizes of all files in the folder and its subfolders
ACL information, obtained using the Get-Acl cmdlet. The ACL data is formatted for display by combining identity references and filesystem rights for each entry.
The collected information for each folder is stored as a custom object in the data array.
Once all drives and folders are processed, the script specifies the desired output Excel file path.
The data in the array is then exported to an Excel file using the Export-Excel cmdlet. The -AutoSize parameter is used to adjust column widths automatically for better visibility, and the data is organized in a table named “FolderInformation” with an additional title “Folder Information.”
After the export process is complete, a message is displayed indicating that the Excel file has been generated.
You can copy the PowerShell script from my blog website
https://www.infoalias.com/generate-excel-report-of-all-shared-drive-information-including-folder-name-size-and-acl-permission/
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Shared drives inventory with Powershell script», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.