locked
Retrieving the SharePoint 2013 document libraries version using powershell RRS feed

  • Question

  • Hi All,

    I am writing Power shell script to get the all document libraries versioning is enabled or not in site collection level. It it is enabled then what is the major and minor versions of that document library.

    Can anyone help on this power shell script.

    Thanks,

    Ashok

    Thursday, August 3, 2017 6:36 PM

All replies

  • Hi Ashok.

    The algorithm for your PowerShell script should be like the following

    • ForEach loop through all the site collections
    • within this loop, a ForEach loop through all the webs (included the root one) within each site collection
    • within this loop, a ForEach loop through all the document libraries: for each document library, you check if versioning is enabled: if that's the case, you get and display (or save to a file) the number of major and minor versions stored for the specific document library

    Is that what you're interested in?

    Bye.


    Luigi Bruno
    MCP, MCTS, MOS, MTA

    Thursday, August 3, 2017 6:56 PM
  • Yes Bruno. I am looking for that only. Thanks, Ashok
    Friday, August 4, 2017 2:03 AM
  • Yes Bruno. I am looking for that only. Thanks, Ashok

    You're welcome.

    Bye.


    Luigi Bruno
    MCP, MCTS, MOS, MTA

    Friday, August 4, 2017 10:03 AM