?
Solved

List files/folders with size on server core

Posted on 2014-09-25
3
Medium Priority
?
211 Views
Last Modified: 2014-09-30
Hi Experts, is there a powershell command to list largest files and folders under C:\ for a 2012 server core?

TIA
0
Comment
Question by:abhijitm00
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 13

Expert Comment

by:Rizzle
ID: 40344834
Hi,

I have used this article to achieve this in the past hopefully it will help you achieve what you need it to.

http://blogs.technet.com/b/heyscriptingguy/archive/2014/02/03/list-files-in-folders-and-subfolders-with-powershell.aspx

Bear in mind when using the above article to run the commands within powershell ensure you run Powershell as admin.
0
 

Author Comment

by:abhijitm00
ID: 40344956
Thanks. Is there a way to store this info into a .txt file and obtain that file from the core server?
0
 
LVL 13

Accepted Solution

by:
Rizzle earned 2000 total points
ID: 40346566
After running the Powershell script to list what you need, you would use

The below is the CMDLET also listed in the article to list file and folders and then output to a text file on the D drive.

The "Out File" part of the CMDLET is what exports the Powershell results to the text file.

Get-ChildItem "E:\" | Out-File "D:\FileLengthReports\Result1.txt"
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Table of Contents: Lesson 1 - Installing Windows Server 2012 (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2012/A_11592-Become-an-Administrator-Installing-Windows-Server-2012.html) Lesson 2 - Configuring Ser…
The article will show you how you can maintain a simple logfile of all Startup and Shutdown events on Windows servers and desktops with PowerShell. The script can be easily adapted into doing more like gracefully silencing/updating your monitoring s…
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question