Get Sitecollection and Sub Sites Data Base Size Using PowerShell

Hi All,
Currently i am getting the Site collection database size using this powershell
$SiteCollurl = @{Expression={$_.url};Label="Site Collection URL"}
$size = @{Expression={[math]::round($_.diskused/1MB, 2)};label="DB Size in MB"}
$HTML = Get-SPSiteAdministration -Limit All | select $SiteCollurl, $size
So in this $HTML i am getting all the Site Collection Url's and DB size for each site collection.
Now i want to get the Sub Sites url and Sub Sites Database size also.
I tried like this  "$HTML = Get-SPSiteAdministration -Limit All | | Get-SPSite -Limit All | Get-SPWeb -Limit All  | select $SiteCollurl, $size"
I am getting all the sub site url's but Database size i am getting 0 for all sites and sub sites.
Can any one help on this.how to get the database size for all site collection's and sub sites.
Regards,
Phani.
Rhys W Edwards Where are you :)

Hi
Please try the script below:
Get-SPSite -Limit ALL | ForEach {
$_ | Get-SPSiteAdministration | Select $SiteCollurl, $size}
I hope this helps.

Similar Messages

  • How to get Search and offline Availability properties in SharePoint using powershell with CSOM

    Hi,
    I want to get the information about the SharePoint sites being crawled or not. I tried to get "Search and offline Availability in SharePoint" settings properties but I couldn't get those properties.
    I followed below thread with no luck : http://www.c-sharpcorner.com/uploadfile/anavijai/search-and-offline-availability-in-sharepoint-2010/
    I couldn't find $web.AllowAutomaticASPXPageIndexing property at site level but i can see $list.NoCrawl
    at list level.
    Can any body help me out to get those values?
    Any help would be greatly appreciated.
    Thank you.
    AA.

    Hi,
    Since AllowAutomaticASPXPageIndexing is a member in SPWeb members while not in Web members, we can not use Client Side Object Model with it. If you need to use it in client side, you need to create a web service for it.
    https://msdn.microsoft.com/EN-US/library/microsoft.sharepoint.client.web_members.aspx
    https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb_members.aspx
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • ASO Data base Size....

    When we normally right click on the ASO app folder in Windows and check properties of that folder then i am able to estimate what is the size of the database.That is how i used to know about my ASO databases.Although i am fine with what i am doing right now.Definitely i will go through dbag to understand ASO in detail.
    Need insight or methiods how to calculate ASO data base size ?

    What you are doing is correct and best practice in collecting the ASO cube size.
    To explain in detail.
    We can define the ASO cube size as the sum of otl file size and .dat file (resides in app/<appname>/default directory).
    .dat file stats, you can collect using below MaxL command.
    query database testaso.testdb list all file information;
    But if you are managing dim and balance files archives in the same database folder by this way we cannot estimate the incremental growth of the archives.
    I am good to define the ASO cube size as the .otl + .dat + .otl backups + archives (interface and lev0 files).
    If you track the incremental growth of all these files only, you can estimate the future disk space requirements.
    For this tracking the size of entire application folder is correct.
    You can write batch script to collect all this information
    In unix you can collect as
    +cs=du -g $appname | tail -1 | awk '{ print $1 }'+
    echo "size of $appname is: $cs. "

  • Data Base size

    Hi Experts,
    The size of the oracle data base for SAP-XI is  increased by 9% strangly in 1 day, where as 1% increase in the oracle data base size normally takes 1 to 2 weeks.
    What could be the problem?  Please give me some links or some idea how to check to know what causes this problem.
    Thnx
    Subbu

    Hi,
    However it is very difficult to comment why your database size suddenly grow by 9% but you can check following:
    - Reduce trace level for messages (SXMB_ADM->IE configuration->tuning)
    - Heavy transactions (however it is unlikely until some jobs are running accidently and sending huge chunk of data to XI)
    - Check with user of interfaces whether they received lot of un-necessary data or not.
    Give some more information to help you in this case. There are trasactions to monitor disk growth but since you are authorized then you can ask for SAP BASIS help.
    Regards,
    Gourav

  • RE:DATA BASE SIZES

    Hi  gurus
    when i had a look in db02 for data base sizes i can see 4 g of data for a table.starts with /BIO
    how can i find datatarget related to that table.
    Thanks

    Any suggestions gurus

  • Concatenate main vi and sub vi data

    Is it possible to concatenate the output string of main vi and sub vi data? 

    Yes, both are string data types and i used the string concatenate function in our previous projects.
    I have not yet implemented the logic. My main objective is, in my main vi i have two sub vi's corresponding to two controls. If i click on control-1 sub vi-1 will popup and i will make some changes. And some changes in second sub vi also. Finally i have to concatenate the both sub vi's outputs and main vi output and send to FPGA board.
    Kindly provide the example vi for my requirements.
     

  • How to get Capacity And Custom Attribute Data Through Powershell

    how to get Capacity And Custom Attribute Data Through Powershell

    Hi Nitesh,
    Great command from Martin.
    Also find a article to configure the Quota:
    http://technet.microsoft.com/en-us/library/aa998353(v=exchg.141).aspx
    Thanks
    Mavis Huang
    TechNet Community Support

  • How to rename content type on web site level and underneath all the document libraries using powershell?

    Hello
    I wantto rename content type on web site level and underneath all the document libraries using powershell, please let me know how can do this?
    I saw this url
    http://suryapulipati.blogspot.in/2011/08/rename-content-type-name-in-list-using.html, but I want to change everything from Web Site, subsite and underneath document libraries. Because if you try to change on any on document library, it will be applicable
    for that document library, if you change on web level then underneath document libraries content type names not updated automatically.
    Please advise
    Avi

    Not sure with powershell.
    I could help you out with Server Side or Web Services though.
    Brandon James SharePoint Developer/Administrator

  • I lost the ability to order and hide site columns if i use custom content type with a custom Create Form

    I have a team site collection and I want to add a new App of type Issue Tracking list. so I did the following:-
    From the site collection I created a new App of type issue tracking.
    Then from the site collection I created a new Content type named “CustomIssue” which has its parent as “Issue” content type.
    I went to the Issue tracking list and I changed the default content type from Issue , to the new “CustomeIssue” content type.
    I open the site collection using SP designer and I created a new Create form for my Issue tracking list based on the "CustomIssue" content type and I select to have the Create form as the default form when creating an item.
    Everything till this point worked well. But when I open the “customIssue” content type , and I re-order the columns and I hide some columns, this was not reflected inside the custom Create form …
    although when using the default content type and the default create form you can control the order of the fields and to specify if certain fields hold be hidden inside the Create form.. so can anyone advice on this please?

    Hi,
    According to your post, my understanding is that you lost the ability to order and hide site columns if i use custom content type with a custom Create Form.
    I try to reproduce the issue, the result is the same as yours.
    As a workaround, if I modify the custom content type form the site setting, and then change the NewForm as the default form, it will change the column orders.
    However, if I use the new created form as the default form, it will remain the original orders.
    I recommend that you modify the custom content type form the site setting, and then reset the NewForm as the default form.
    The result is as below:
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support
    ok thanks for the explanation ,, but what if i want to change the order and hidde some fields in the future ,, do i have to chnage the defualt create form again ...

  • Creation of dynamic site collection and sub-sites

    We are having an enterprise system where organization wide operations are maintained. Recently we decided to provide collaboration features for each operation maintained in the system using SharePoint 2013, since that enterprise system did not provide
    any social/collaboration features.
    Assumptions/constraints -
    1. Every year 2500 operations are created
    2. Each operation can have documents and other content scaling upto 5 GB.
    3. Only SharePoint provider hosted apps are allowed to build the solution
    For seamless integration, we are creating an automation component which will a SharePoint provision site automatically when an Operation is created in the enterprise system (we will get the trigger through web services)
    Proposed solution - 
    After going through
    Software boundaries and limits for SharePoint 2013, I'm thinking of proposing this architecture -
     1. A windows service will be created which will accept the trigger to create a site and take care of provisioning the entire site 
     2. A maximum of 700 sites will be created per site collection (based on the size calculations and keeping some buffer)
     3. Once a site collection hits 700 sub-sites, a new site collection is automatically created for provisioning the new sites
     4. Provision the apps and add them to site pages using powershell/CSOM
    Kindly let me know if this approach is effective or any major road-blocks we need to take care of in this.
    NLV - MCTS - Blog -
    Twitter - In

    Hi Margriet,
    We are looking at the SharePoint 2013 limitations and trying to devise the best possible solution. We are open to create multiple content databases for multiple site collections or with single contentdatabase having multiple site collections (which doesn't
    look like feasible). So it is a matter of deciding which will best suit this scenario.
    NLV - MCTS - Blog -
    Twitter - In

  • SAP R/3 and JAVA based data base

    hi,
    I have two data base one is SAp r/3 and another is JAVA based.
    i need to link one table from Sap r/3 and one from JAVA based data base.
    using crystal reports how can i do this????
    thanks

    hi,
    in Crystal reports go to data base expert in the pop up link JAVA based data base using JDBC and connect SAp r/3 using SAP.
    You will be able to get SAp menue only if you are using crystal reports version 2008 or version 12.
    Once the connection is established select the tables you require and rest remains same.
    Thanks.

  • Add zfield to va01 and updating the data base

    Hi friends,
    I have requirement to add Zfields to vbak and updating the Zfield value to VBAK.
    But my problem is when am trying to save or changing the Zfield into data base it is not saving the zfield value and it is not detecting the change value of Zfield in VA02.
    Can any provide the solution if possible.
    Thanks in advance.
    sasi.

    Hi friend ,
    my requirement to update the Zfield information in vbap table. Even if am try using the user exit move_field_to_vbap it is not getting triggered if we chage the zfield value.it is only getting triggered during the change of standard field.
    when am trying to save the Zfield value we are getting the message No data changed. in that case data is not getting updated to data base table vbap
    thanks  in advance,
    sasi.

  • Getting Training and Event Management Data using IT0031

    Scenerio:
    One of the Employee Is Retired. Now we hire it again for the same role ( extending its period after posting it as retired).
    So the good thing that we can use the IT0031 "Reference Personnel Numbers" to get the desired ITs and found that can get other cutomized ITs by checking in the "Copy Infotype" attribute of IT records.
    Now this seems to be valid if we are in the same module
    but waht if i want to get this magic "Referencing of ITs" done for the "Training and Event Managment" Data of the employee.
    Is it Possible Automatically ... or have to go fro ABAP... (I will not prefer ABAP)...
    I hope i have stated the problem clearly ...
    Feedback ... need it ASAP ...

    Hi,
    TEM data is stored in HRP tables.
    You can load the catalog by creating LSMWs for objects Business event group (L), Business event types (D), Locations (F), Organizers (U) as per requirement.
    LSMW for tcode PP01 can be used to create these objects.
    To create Business Events (E) you can create LSMW for PV10/PV11.
    To book attendee create LSMW for tcode PV08 as here you can specify the actual business event ID which reduces ambiguity.
    tcode PV12 to firmly book events
    tcode PV15 to follow up
    Hope this helps.
    Regards,
    Shreyasi.

  • Get name and type of data in an object?

    Hello,
    I would like to know if there is a way of getting the names and types of data encapsulated by a labview object?
    For example, lets say I make a simple object, called myObject to be unoriginal, with private data: myObjectName (string), myObjectValue (int 32) (etc)
    How then do I construct a method to return the type of the myObjectValue data, or infact return the names and types of all of the data fields within the object, which could be many?
    Thanks,
    Paul.
    Solved!
    Go to Solution.

    Hi there
    i can't find a generic solution. Attached is a workaround. The trick is to pack all private data inside a cluster and use the "Controls" property of a template of this cluster to get all data elements and their types.
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"
    Attachments:
    LVClass_8.5.1.zip ‏38 KB

  • Function module to find out DATA BASE size, free space, used size

    Is there any function module to find out DATA BASE , free space, used size
    FM that gives all the details of the Date base
    what data base, what is the size, free space, used space etc...
    instead of writing case by case for each data base. based on  CASE SY-DBSYS.

    Hi,
    Check this FM:
    DB02_ORA_SELECT_DBA_SEGMENT
    alternatively u can check the tcode: DB02
    thanks|
    Mahesh

Maybe you are looking for

  • Acrobat 7.0.8 updater gets stuck

    Hello all, I had to re-install my copy of Acrobat Pro on my new machine, and when running the Adobe Updater it tells me three updates for Acrobat are available. Great! Well, on the first one, 7.0.8, it hangs after about 95% on progress bar. It doesn'

  • Steps to "de-pod" workspaces in FM 9

    In a current thread http://forums.adobe.com/thread/707908?tstart=0 a user is having problems working with a large file in FM9. I suggested he try "de-podding" the FM workspace to see whether that saved enough RAM and whether that might help to  succe

  • New 5.1 Speakers not coming out right with SB Live DE

    I came to this forum after discovering that driver support is no longer available for "<font face="Verdana" size="3" color="#ff0000">Li've! Digital Entertainment 5."<font face="Verdana" size="3" color="#ff0000">?I just got a new 5. speaker set and pl

  • How to Compare Two Oracle 10g Form(FMB) file.

    Hi, One developer had done some changes in one file called N004 version 2. I have done some changes in N004 version 3. If I like to see difference between two Oracle Form Version(FMB) then How can we see them..? Thanks, Div

  • Calling getEJBMetaData throws java.lang.ClassCastException

    I am trying to introspect bean Home,creation methods and public methods thru Java Client using RMI/IIOP. It looks like I get the remote interface and home interface but next time I try to call again, I get following errror: getEJBMetaData() threw thi