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
Watch video Find Empty Folders with PowerShell online without registration, duration hours minute second in high quality. This video was added by user vCloudBitsBytes 09 November 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 69 once and liked it people.