Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


Aaroona

Human
2993 posts

Uber Geek

Subscriber

#154753 6-Nov-2014 15:38
Send private message

We are undertaking a task at work at the moment which involves moving to a new SOE.

To do this, we need to scan every hard drive on each machine, to find out what files are where and what size they are.

For example; I want to scan all of C:\ and exclude the Windows directory, etc etc.


I was going to write a powershell script to handle this, but it doesnt look like it's going to be appropriate, as it runs into the 260 character limit. 


Are there any solutions, either via script or an actual application, that will be able to produce this information?





Create new topic
wellygary
5004 posts

Uber Geek


  #1170170 6-Nov-2014 16:28
Send private message

How knives and bearskins do you want it?

You could always just run a "dir /og /s >dir.txt"  in each drive's root directory

and then dump the directories you dont need/want,

Regs
4062 posts

Uber Geek

Trusted
Snowflake

  #1171157 7-Nov-2014 21:03
Send private message

treesize professional? http://www.jam-software.com/treesize/features.shtml

"Search multiple drives, whole servers and even your entire network neighborhood."

can run a bunch of reports, or export results to many file formats  etc




 
 
 
 


Aaroona

Human
2993 posts

Uber Geek

Subscriber

  #1176462 15-Nov-2014 21:22
Send private message

Thanks for the response guys.


I may have a look at tree size, if we run into any other limitations.

I have managed to optimise my script a bit more, and have managed to avoid hitting paths that hit the 260 character limit. It looks like the places where those files are, are mainly program files and Windows directory.


My script now scans the machine, excluding things like Windows, Program Files, Program Files (x86) and a couple of other folders we put their on our SOE. It then inputs the information directory into an SQL database, with the computer name, file name, path, size in MB and current logged in user. So I think we should be sorted for the time being :) I'll see what the Project team things and go from there.

Cheers





Create new topic





News »

Huawei launches IdeaHub Pro in New Zealand
Posted 27-Oct-2020 16:41


Southland-based IT specialist providing virtual services worldwide
Posted 27-Oct-2020 15:55


NASA discovers water on sunlit surface of Moon
Posted 27-Oct-2020 08:30


Huawei introduces new features to Petal Search, Maps and Docs
Posted 26-Oct-2020 18:05


Nokia selected by NASA to build first ever cellular network on the Moon
Posted 21-Oct-2020 08:34


Nanoleaf enhances lighting line with launch of Triangles and Mini Triangles
Posted 17-Oct-2020 20:18


Synology unveils DS16211+
Posted 17-Oct-2020 20:12


Ingram Micro introduces FootfallCam to New Zealand channel
Posted 17-Oct-2020 20:06


Dropbox adopts Virtual First working policy
Posted 17-Oct-2020 19:47


OPPO announces Reno4 Series 5G line-up in NZ
Posted 16-Oct-2020 08:52


Microsoft Highway to a Hundred expands to Asia Pacific
Posted 14-Oct-2020 09:34


Spark turns on 5G in Auckland
Posted 14-Oct-2020 09:29


AMD Launches AMD Ryzen 5000 Series Desktop Processors
Posted 9-Oct-2020 10:13


Teletrac Navman launches integrated multi-camera solution for transport and logistics industry
Posted 8-Oct-2020 10:57


Farmside hits 10,000 RBI customers
Posted 7-Oct-2020 15:32









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.