In this video, we will learn how to automate the process of finding empty folders and file shares on Windows servers using PowerShell. Administrators often face the challenge of locating these empty folders or file shares, but with PowerShell, it becomes much easier. We will walk through the step-by-step process, including opening PowerShell as admin, ensuring the necessary permissions, running the PowerShell script, and reviewing the results. Join us to streamline your file server cleanup and save time!
PowerShell Cmdlets
*********************
$share = Get-ChildItem '\DESKTOP\d$' -Recurse | Where { $_.PsIsContainer -eq $true }
$share | Where { $_.GetFiles().Count -eq 0 -and $_.GetDirectories().Count -eq 0 } | FT Name, FullName, Attribute
Смотрите видео Find Empty Folders with PowerShell онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь vCloudBitsBytes 09 Ноябрь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 694 раз и оно понравилось 7 людям.