Avatar of String :-)
String :-)Flag for Australia

asked on 

Powershell help - How to find largest files and folders on a system drive (like treesize)

I have several servers low on disk space and need to troubleshoot using Powershell.



Therefore seeking Powershell commands to assist with finding space taken on a local drive.  Ie like Treesize would do.

I would usually use Spacesniffer or Treesize, but our environment does not allow for downloading 3rd party exe files, therefore looking for a Powershell module or commands to do same task.

I already found and tried this Treesize module
https://www.powershellgallery.com/packages/TreeSize/2.0
However it spiked my servers CPU to 98% during use, which is unacceptable for a production server.

Any tips appreciated
Cheers,
String
PowershellWindows Server 2012

Avatar of undefined
Last Comment
String :-)
ASKER CERTIFIED SOLUTION
Avatar of Mike Taylor
Mike Taylor
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of String :-)
String :-)
Flag of Australia image

ASKER

Hey Mike. Thats brilliant - Just what I needed. thanks champ
Avatar of String :-)
String :-)
Flag of Australia image

ASKER

Perfect solution to my problem :-)
Powershell
Powershell

Windows PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built on the .NET Framework. PowerShell provides full access to the Component Object Model (COM) and Windows Management Instrumentation (WMI), enabling administrators to perform administrative tasks on both local and remote Windows systems as well as WS-Management and Common Information Model (CIM) enabling management of remote Linux systems and network devices.

27K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo