Solved

List files/folders with size on server core

Posted on 2014-09-25
3
201 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
  • 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 500 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access Running Very Slowly on Windows 7 PC 27 79
SBS2K8 ---> 2K12  can I migrate FSMO roles after DHCP -DNS -DATA ? 1 35
AD Activation of KMS Key 6 63
Doubt. 2 58
My GPO's made for 2008 R2 servers were not allowing me to RDP into a new 2012 server by default.  That’s why I tried to allow RDP via Powershell, because I could log into a remote shell without further configuration. Below I will describe how I wen…
A procedure for exporting installed hotfix details of remote computers using powershell
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 installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

895 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now