How to set version limit for entire site collection

Hi,
We have more than 500 document libraries in one site collection. I see some of them have more than 50 versions & taking lot of storage space. So planning to limit the version's to 3 Major and 3 Minor for entire site collection. How can we do that? I
know we can set to individual library by how can we do that for entire site collection?
Thanks
Rithu.
Rithu

The version limit is a library specific setting, so you'll need to use PowerShell to set the property value on each library in every site in the site collection.  Here's a sample script that sets if for one library.  You'll need to expand the script
to walk the sites recursively and run this for every library.  
https://consultantpoint.wordpress.com/2012/06/15/powershell-setconfigure-document-library-with-majorversionlimit-majorwithminorversionslimit-require-to-checkout-before-editing/
Please Note: Changing these settings won't delete old versions.  That only happens after each item in the list or library is edited.  
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem.

Similar Messages

  • How to set security group as primary site collection admin and secondary site collection admin using powershell in sharepoint online site - office 365?

    How to set security group as primary site collection admin and secondary site collection admin using powershell in sharepoint online site - office 365?

    Hi,
    According to your description, my understanding is that you want to set security group as admin of primary and secondary site collection using PowerShell command in office 365.
    I suggest you can use the command below to set the group to site owner, then it will have the site collection admin permission.
    Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -Owner [email protected] -NoWait
    Here are some detailed articles for your reference:
    https://technet.microsoft.com/en-us/library/fp161394(v=office.15)
    http://blogs.realdolmen.com/experts/2013/08/16/managing-sharepoint-online-with-powershell/
    Thanks
    Best Regards
    Jerry Guo
    TechNet Community Support

  • Setting SharingCapability property for a Site Collection using CSOM in C#

    Hello,
    I am trying to deploy multiple site collections in a SharePoint 2013 Online tenant, using CSOM in C#.
    I am currently using the SiteCreationProperties to do this, but I miss one crucial parameter : SharingCapability.
    Do you guys know a way of activating external sharing for a site collection in CSOM ?

    I believe you can set the SharingCapability of the Site after you create it. You can use the Microsoft.Online.SharePoint.TenantAdministration.Tenant.GetSitePropertiesByUrl(siteUrl, true)
    This returns SiteProperties object with a SharingCapability property you can set with the appropriate enumeration. Then call the Update method.
    http://msdn.microsoft.com/en-us/library/microsoft.online.sharepoint.tenantadministration.tenant.getsitepropertiesbyurl(v=office.15).aspx
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Don't know how to set current limit for servomotor​s in MID

    My application is to control a servo motor. I�m using PXI-7350, driving a motor (Pittman GM8712F434) with MID-7654. The motor is connected to mechanic parts and mechanic parts are connected to a potentiometer as a feedback. Now, according to the spec of the motor, it said reference voltage 19.1V, inductance 5.4 mH, peak current 1.76 A. So, I set dip switch of MID to 0.85 A for continuous current, 1.70 A for peak current and standard inductance. The motor didn�t move and fault LED lighted. Then I set both continuous and peak current to around 1.7A. The motor still didn�t move and fault LED still lighted. I kept increasing the current until the current hit 3A. It started moving slowly but fault LED still lighted. Final
    ly I set the peak current to 3.5A, the motor ran normally. Come to the questions.
    1. Is the peak current in the spec same as peak current limit in MID? How to determine peak current limit? Because I�m afraid that my little motor is going to burn out.
    2. How to set the continuous current; is it suppose to be half of peak current?
    3. If +10/-10V command voltage(torque limit) gets map to peak current (let say 1.7 A), will +5/-5V be mapped to 0.85? And what happen after 2.7 sec if I set continuous current to 0.85A? Will +5/-5V be mapped to half of 0.85?
    4. How does �2.7 sec� thing works? When I set peak and continuous current to 3.5A and 1.7A, after 2.7 sec motor should run slower or even stop (in my case), but it went nut like it ran at maximum current.
    I set Kp 20 and others zero, everything else is same as default. Thank you, I appreciate your answer.

    infoiupui,
    There are several DIP switches on the front of the MID 7654 that can be toggled to vary the continuous and peak current values for the MID. There is a small panel that can be removed from the lower left corner of the MID. You can look in the manual for the 7654, linked below, to determine the particular settings that you should use to achieve given continuous and peak current values.
    MID-7654/7652 Servo Power Motor Drive User Guide
    http://digital.ni.com/manuals.nsf/webAdvsearch/E38​2785B7D67553E86256A5D0072BBE1?OpenDocument&vid=niw​c&node=132100_US
    Take a look at pages 10 through 13 of this document for information on how to modify those DIP switches to achieve current values that will work with the motor that you are using.
    I am not clear on w
    hat you are referring to when you referred to 2.7 seconds. Could you clarify that for me?
    I hope that helps! Let me know if you have any additional questions on this issue.
    Regards,
    Scott R.
    Applications Engineer
    National Instruments

  • How to Set Item limit for Picture library Slideshow webpart in SharePoint 2013

    Picture library Slideshow webpart is using the default view "All Pictures" and if I set a filter condition in the view, the images are displaying based on it but if I set an Item limit as "5" or any number in the "All Pictures"
    view it is not reflecting in the slideshow webpart.
    Any suggestion would be a great help as the users want to see only the latest 5 images in the slideshow webpart.
    Thanks & regards,
    Asha

    I don't think so there is any way to set a item count limit on Picture Library Slideshow web wart.
    Web Part setting only allows to provide library and View, In List view also you can only set Item Limit to be shown on the 'List View'. Slideshow web part take all the items in the list and show, view is only used to provide which field needs to be shown.
    There could be 2 options:
    - Write a JavaScript to limit the count, and in the view add Sorting by 'Created' date. You can get some example on how to modify "Library Slideshow web part" javascript here: http://blog.vgrem.com/2013/04/27/beyond-the-slideshow-web-part-capabilities-in-sharepoint-2010/
     This link does not have solution of what you want, but it gives a very well idea on what you can look and modify. It will not be that straight forward for sure.
     - Create a custom webpart, it could be a easier approach. As there are many slideshow Javascript library present, and through code you will just need do a query and pull data from library with required number of items to be shown.
    get2pallav
    Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.

  • How to provide internet access for a site collection in SharePoint Foundation 2010

    Hi all,
    I am working on SharePoint Foundation 2010. I have to make a site collection available on internet.
    Only one site collection is to be brought on internet rest of the site collections should not be accessible from outside.
    How do I achieve this. Any help is greatly appreciated.
    Thanks in advance.

    Hello,
    As per my knowledge, you have to create new Web Application for your site to publishing it to internet. Since internet settings can be done at web application so create new one and then backup your existing site and restore in new web app.
    You can refer below thread for licensing:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/b63b3643-d0c7-45d2-8372-364fda348ed0/sharepoint-foundation-licensing-on-internetfacing-server?forum=sharepointgeneralprevious
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to set the limit for the warning 'running out of disk space'

    I am wondering if there's a way to set the number of GB before I get the system warning 'running out of disk space'.
    I saw this question asked in 2010 and it did not get an answer. It was archived so I am asking again. I know how to monitor the available space on my startup disk, and how to empty the trash to clear up disk space. I am looking for an OS X setting that I can change.

    My guess is that you want to lower the limit. IMHO I think the limit is alreay too low.
    If you are seeing this warning regularly then your disk is severely overfull and needs to be replaced with a larger one.
    Running the free space low eenough to get the warning greatly increases the chances for disk corruption. Once the disk gets corrupted then then next thing that happens is data lose.
    You have a serious problem with your Mac that should be dealt with immediately.
    Backing your data up would also be a good idea if you are not already doing that.
    Allan

  • Cash Journal : How to set the limit for maximum payment of 20000

    Hi Gurus,
    Please tell me how can i set the maximum payment limit of 20000 in cash journal?
    Please revert asap.
    Thank You

    Hi
    Amount Limit
    Use
    You use these functions to define limit values for the FI cash journal; where these limits are reached and exceeded, the user is prompted (in an information dialog box) to run certain activities. The check is always performed in the first local currency of the company code.
    In the countries of the European Union, these functions are used to draw attention to the legal requirement for identifying the payer (money laundering law § 3 para. 1).
    Activities
    Company code:
    You do not have to enter a company code. The entry is then valid for all company codes within a client that use the currency specified as the first local currency.
    Currency:
    Each amount must be specified by the classification of the currency. If you specify a company code, the currency of the company code is entered in the currency field and you cannot change this.
    Date and amount:
    The amount limits are defined time-dependent ("Valid From").
    In addition to the above
    Input your company code,Currency,Valid from and the amount limit
    Good Luck
    Hari

  • How to set page margin for any site being viewed without back and forth scrolling?

    Some sites and most forums, the threads cannot be read without scrolling the screen back and forth. How can these be set where all information is read without moving screen short of up or down and not side ways back and forth.

    Thank you all for attempts to satisfy my needs. The last concerning my screen is 19 inches and 800 resolution. I'm very long in the tooth and if I go higher in
    resolution I have to play squint the fonts are so small. Crank them up and I'm back to scrolling back and forth on the screen.
    Again thanks for help but I' m not interested in spending money on newer
    haha state of the art equipment just to satisfy the need of cyber space Ad
    purveyors to post their wares. Graphics I can do without as well. If they want
    me to see what they have to offer, then stop messing with what once worked just fine.
    I still have Word where I can do with whatever I copy n paste to get done what I need. The convenience of doing so right at the site isn't a requirement as such. Being a retired Master Electronics Technician, I'm short on computer orientations but long on other kinds of smarts.
    Again, Thank you all for the help.
    Gizmoman

  • How to set up hosting for Muse site?

    How do I set up Business Catalyst hosting for a new site built with Muse. The new site will replace a site currently hosted by yahoo.
    Stephen

    Hi there,
    You should find this article helpful http://www.adobekb.com/upgrading_and_launching.html
    Cheers,
    Mario

  • How to set Compatibility Mode for a single site in ie10

    This question was originally posted on the Answers forum -
    http://answers.microsoft.com/en-us/ie/forum/ie10-windows_7/how-to-set-compatibility-mode-for-a-single-site-in/187152e3-142a-4d96-8d1b-af82ef571eec
    I am having problem with getting ie10 to set ie9 compatibility for a single site (sharepoint.contoso.com).
    When I add this website in Compatibility View Settings (Alt > Tools > Compatibility View Settings > 'Add this Website') it adds the domain 'contoso.com' and not the individual website (sharepoint.contoso.com).
    This cause other sites (www.contoso.com) to be configured to use compatibility mode. Because this is a separate site (different web server) to the site sharepoint.contoso.com (sharepoint 2010 server) we need different compatibility settings.
    Using a different example to explain the issue -
    Microsoft has three websites that are different websites created by different developers written in different programming languages and they only work with certain browsers.
    microsoft.com (Website1 created by Developer1) - compatible with ie8/ie9/ie10
    msdn.microsoft.com (Website2 created by Developer2) - compatible with ie8/ie9
    technet.microsoft.com (Website3 website created by Developer3) - compatible only with ie10
    The only thing the three website share is the URL contains 'microsoft.com'.
    Marking 'msdn.microsoft.com' to run in compatibility mode affects the other 2 websites - mainly technet.microsoft.com which will not work now since it only runs in pure ie10 mode. 
    Should you be able to add an individual site to the compatibility list instead of all sites that have  .microsoft.com in the URL? Am I missing a simple setting in the ie10?
    As a workaround I am using the F12 Developer Tools to set the Browser Mode which temporary sets the compatibility mode. However this is not a nice solution to the end users at our organisation. 

    problem is not solved for non corporate environments...
    You could start your own thread.  Then if you got that answer and it was marked Answered you would have the ability to unmark it.  The OP of this one seems satisfied.  Also note that this is TechNet.  Consumers can get help on Answers
    forums.
    Robert Aldwinckle
    Oh! I wrote it wrong: I should have said: This is not solved for NON-AD environments. No demands what so ever to use Window 7/8 professional in a small corporation or on a big corporation with Island of smaller departments for example offshore.
    The problem is that the thread is not "Answered" by the OP, its is marked answered by a moderator (and same moderator that did the answer) so no way of telling if the OP is satisfied.
    But you are right in the fact that I am almost kidnapping the thread. But a complete answer would benefit all in this case I would presume.
    Regards
    /Aldus

  • Can v set credit limit for a vendor? if so, how?

    can v set credit limit for a vendor? if so, how?

    Hello
    the two replies are correct that the redit limit is always used for customers. but i can give you the scenario as per the request and Amrita please correct me if i am making something wrong.
    as per vendors there are three to four vendors are available for buying a material. we are not using quota arrangement but we just distribute the order based on the situations. the order is given to a vendor who is quoting low price, giving the required quality and quantity and supplying as per our need. there is one more criteria for choosing this vendor. the outstanding balance for this vendor should not cross some limit.
    the limit may be based on negotiations and the some contracts' terms and conditions.
    the solution for this may be that there should be one report where you can see how much we owe to each vendor. this could be possible only when we know the Vendor g/l account and the corresponding balances.
    i think i have cleared the credit idea as well as given the solution. please reward if found it helpful.

  • Hi All,How to set printer configuration for sap4.7 IDES version for home pr

    Hi All,
              Pls provide the information How to set the configuration for our home printer from the sap 4.7 IDES version .If possible pls provide with screen shots
    thanks & regards.
    bharat

    check SPAD (tcode) to installl Printer and all formats.
    Regards
    Prabhu

  • How to create sharepoint Group with read only permissions using powershell for entire site ?

    How to create sharepoint Group with read only permissions using powershell for entire site (including subsites and top level site)

    Hi
    using (SPSite site = new SPSite(url))
    using (SPWeb web = site.OpenWeb())
    SPUserCollection users = Web.AllUsers;
    SPUser owner = users[string.Format("{0}{1}", "Domain", "Owner Username")];
    SPMember member = users[string.Format("{0}{1}", "Domain", "Default Member Username")];
    SPGroupCollection groups = Web.SiteGroups;
    string GroupName = “Super Exclusive”;//your group name
    string GroupDescription = “Super exclusive group description.”;
    groups.Add(GroupName, owner, member, GroupDescription);
    SPGroup NewSPGroup = groups[GroupName];
    SPRoleDefinition role = Web.RoleDefinitions["Read"];
    SPRoleAssignment roleAssignment = new SPRoleAssignment(NewSPGroup);
    roleAssignment.RoleDefinitionBindings.Add(role);
    Web.RoleAssignments.Add(roleAssignment);
    Web.Update();
    Please 'propose
    as answer' if it helped you, also 'vote
    helpful' if you like this reply.

  • How to set default values for boolean columns

    I'm trying to deploy some content types and columns into a site with a feature. All it's ok, except that I'm trying to set a default value for boolean columns with no success.
    I've tried to set default value at column level:
    <Field ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DisplayName="Se publican noticias en español"
    Type="Boolean" Hidden="FALSE" Group="Columnas ShaCon" >
    <Default>TRUE</Default>
    </Field>
    and at content type level:
    <FieldRef ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DefaultValue="TRUE" Required="TRUE" />
    But in any case, when i create a new item with this content type, default value is applied.
    Can anyone tell how to set default values for boolean columns?
    Thanks in advance,
    Regards,
    Sergio

    In the field definition you can set
    <Default>1</Default>
    or
    <Default>0</Default>
    How to set the default value Null?

Maybe you are looking for