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