Get File detail whose version count is more than 10

Get-SPSite -Limit All | Get-SPWeb -Limit All | Select -ExpandProperty Lists | Where { $_.GetType().Name -eq "SPDocumentLibrary" -and -not $_.Hidden -and $_.EnableVersioning -eq $true } | Select -ExpandProperty Items | Where { $_.Versions.Count -gt 10 } | Select Name, @{Name="URL";Expression={$_.ParentList.ParentWeb.Url + "/" + $_.Url}},{$_.versions.count} | export-csv "D:\scripts\versioning.csv" -notypeinformation
Get following details
Name
URL
Version Count
Need following details
Item Name
URL
Extension
Parent List Name
Item Creator
Last Updated by
Size (KB)
Page Views
Versions
Last Updated
Thanks Basva

Hi Basva,
Please check the script below:
$web = Get-SPSite -Limit All | Get-SPWeb -Limit All
foreach ($list in $web.Lists) {
if ($list.GetType().Name -eq "SPDocumentLibrary" -and -not $list.Hidden -and $list.EnableVersioning
-eq $true){
foreach($item in $list.Items){
if ($item.Versions.Count -gt 10){
$data = @{
"Item Name" = $item.Title
"extensions" = $item.name.split(".")[1]
"Parent List Name" = $item.ParentList
"URL" = $item.ParentList.ParentWeb.Url + "/"+$item.Url
"Item Created" = $item["Created"]
"Last Updated" = $item["Modified"]
"Item Creator" = $item["Author"]
"Last Updated by" = $item["Editor"]
"Size(KB)" = $item.File.Length/1KB
"Versions" = $item.versions.count
} #end data
New-Object PSObject -Property $data
}#end item filter
}#end item
}#end list filter
}#end list
Regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] .
Rebecca Tu
TechNet Community Support

Similar Messages

  • Page number to get displayed only when the page count is more than 1

    Hi Gurus,
    My requirement is to print page numbers ONLY if the page count is more than 1 ,i.e. if the data getting displayed in 1 page only then don't print "Page n of m" but if it is getting displayed in more than 1 page then display "Page n of m" on TOP right corner.
    I selected "Page n of m" and it creates 3 fields in object hierarchy i.e TextField CurrentPage, TextField PageCount and Static Text field Pages.
    I go to the ready:layout of PageCount object, and use below script:
    this.rawValue = xfa.layout.pageCount(); 
    if (this.rawValue == 1) {
    this.parent.Pages.presence     = "invisible";
    I looked at the message Page number not to display but it doesnot resolve my problem.
    Please help me out.
    Regards
    Ajay

    Hello Ajay,
    Script do not work for TextFields.  to get the page numbers displayed.  Select Text field from library and Go to Object Pallete, Value tab and select "Calculated - Read Only" in Type and choose Runtime property.  There you can find the Number of Pages.
    Once this is the text field, you can write script on it. 
    If(this.rawValue == 1)
      this.presence = "invisible"
    similarly write script for total number of pages, but make sure that variable is accessed properly.
    Please let me know, if you still see some issues with it.
    Thanks,
    Rakesh

  • How can I get a E3000 or E4200 to manage more than 5 devices

    How can I get a E3000 or E4200 to manage more than 5 devices? Come on Cisco, lets get real. EVERYONE has more than 5 devices to manage. The average family of 4 has 3 or 4 computers, 4 smart phones and at least a couple of tablets and maybe some TV or game consoles. Setting access control policies is a must for anyone who is a parent.
    Does anyone know of a good router that has a reasonable set of access control features? I've always loved Cisco up to this point, but I'm frustrated by this significant limitation.

    Fuggedaboutit.  Cisco apparently has retreated from the more advanced Internet Access Policy (IAP) to leave users with their paltry Parental Controls (PC) instead.  For example the E4200v1 had IAP+PC, and the E4200v2 has only PC.
    And good luck trying to find a E4200v1.  I spent the last week, ordered 3 of them from different sources, and every one of them was a V2 inside of a V1 box, even the last one I ordered directly from Linksys!
    That's a very bizarre marketing scam they're pulling there.  The sad thing is that I actually want to keep using their product line, but they are doing their best to push me away.
    I too am now regrouping and looking for a competitor who does 2 things well:
      (A) High performing dual-band wireless access point, w/ pswd-protected guest-mode
      (B) Reliable & fairly full-featured Internet access control (parental control)
    My basic requirements for "B" are:
      (1) Allow restrictions by IP or better yet MAC address (Cisco PC's hostname list didn't work for me)
      (2) Device list of at least 12 devices (obviously family size varies but Cisco's 5 is a joke)
      (3) Restricty by days of week and time of day (hourly or half-hourly would be nice)
      (4) Restrict by URL's and keywords, at least 12 per device or policy/rule
    I wonder if there's a home router whose stock OS, meets these requirements.  Otherwise I may have to look into using DD-WRT or similar.

  • -setFence:count: called more than once per transaction

    I am getting following error, any body have any idea what it is?
    -setFence:count: called more than once per transaction
    Debugger stopped.
    Program exited with status value:101.
    Thanks in Advance
    Ravi

    I am getting the same error...
    T'is usly a m'ry error.
    Use the debugging/testing tools in the latest Xcode to track down suspects, etc.

  • How do you get the integer of a number with more than 10 digits

    I can't seem to be able to get the integer of a number with more than 10 digits.
    ex:
    integer(12345678901.3) returns -539222987 when it should really return 12345678901
    Thanks for the help
    (I'm on director 11 at the moment)

    You can write a Parent script to represent Big Integers. I wrote some code to get you started. It consist of two classes - "BigInt" and "Digit".  At this point you can only add two "BigInts" and print out the value with a toString() function. Note that you pass a String to the "BigInt" constructor.
    In the message window you could enter something like:
    x = script("BigInt").new("999999999999")
    y = script("BigInt").new("100000000000000000004")
    z = x.add(y)
    put z.toString()
    And the output window will show:
    -- "100000001000000000003"
    Here are the two Parent scripts / Classes
    -- Digit
    property  val
    property  next
    on new me, anInt
      val = anInt
      next = 0
      return me
    end new
    -- BigInt
    property  Num
    property  StringRep
    on new me, aString
      Num =  script("Digit").new(Integer(aString.char[aString.length]))
      curNum = Num
      repeat with pos = aString.length - 1 down to 1
        curNum.next = script("Digit").new(Integer(aString.char[pos]))
        curNum = curNum.next
      end repeat
      return me
    end new
    on add me ,  Num2
      curNum = Num
      curNum2 = Num2.Num
      result = curNum.val + curNum2.val
      if result > 9 then
        carry = 1
      else
        carry = 0
      end if
      result = result mod 10
      sum = script("Digit").new(result)
      curSum = sum
      curNum = curNum.next
      curNum2 = curNum2.next
      repeat while curNum.ObjectP AND curNum2.ObjectP
        result = curNum.val + curNum2.val + carry
        if result > 9 then
          carry = 1
        else
          carry = 0
        end if
        result = result mod 10
        curSum.next = script("Digit").new(result)
        curSum = curSum.next
        curNum = curNum.next
        curNum2 = curNum2.next
      end repeat
      repeat while curNum.ObjectP
        result = curNum.val +  carry
        if result > 9 then
          carry = 1
        else
          carry = 0
        end if
        result = result mod 10
        curSum.next = script("Digit").new(result)
        curSum = curSum.next
        curNum = curNum.next
      end repeat
      repeat while curNum2.ObjectP
        result = curNum2.val +  carry
        if result > 9 then
          carry = 1
        else
          carry = 0
        end if
        result = result mod 10
        curSum.next = script("Digit").new(result)
        curSum = curSum.next
        curNum2 = curNum2.next
      end repeat
      StringRep = ""
      me.makeString(sum)
      return me.script.new(StringRep)
    end add
    on toString me
      StringRep = ""
      me.makeString(Num)
      return StringRep
    end toString
    on makeString me, digit
      if not digit then
        return
      end if
      me.makeString(digit.next)
      put String(digit.val) after StringRep
    end makeString

  • Anyone get Play Movies to Loop a sequence more than twice?

    Has anyone got Play Movies to loop more than once (show twice) using a folder of movies inputted via Get Specified Finder Items. It seems like a bug as it resets the loop number to 1 when saved or show action is selected. I doubt that the number field is passed or saved as a variable.
    If it is a bug, I really need some sort of workaround if anyone can suggest one? My intent is to use an iMac as a self running theater for student film projects--to turn on in the morning, play movies all day long, then turn off at night.
    Thanks

    I am having a similar problem with iTunes 11 on a Windows 7 box. I was able to rent and play HD movies befor "upgrading" to iTunes 11, however now when I try and rent a movie in HD I get the error: "This cannot be played in HD on this computer. You must rent and watch the HD version on an HD-compatible device. Or, you can rent the SD version and watch it on this computer."
    Guess i'll be renting movies from XBox from now on.

  • How to send text file as an email attachment havin more than 255 characters

    My requirement is to generate a text file and to send this text file as E-mail attachment. I am using FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send the E-mail. but here the limitation is the number of characters per line must not be more than 255 characters whereas in my case it is exceeding 1000 characters per line. could anyone please suggest me what should i do now ? Each field in the text file has to be tab delimited.

    Simplest might well be to use javamail API instead of the two tags that Sites provides, e.g. see email - Sending mail attachment using Java - Stack Overflow for a full example.
    Phil

  • Error XML file, Description ID...is more than 30 char. won`t be send toCCMS

    Hi, could somebody help me with these message error I got at starting time of our EP:
    error in XML file -> Description ID:[MGR.Port.AcceptingThreadsUsageRate ]is more than 30 characters and won't be sent to CCMS.
    error in XML file -> Description ID:[MGR.ConManip.TotalConnectionsCount ]is more than 30 characters and won't be sent to CCMS.
    error in XML file -> Description ID:[MGR.ConManip.TELNETConnectionsCount ]is more than 30 characters and won't be sent to CCMS.
    And so on until 20 or 30 times.
    Regards,
    Santi

    1st of all my apologize for the delay. I got theses messages when EP is starting. Here you are attached a snapshot of logs. Anyway, I know that log files are at /usr/sap/EPD/JC01/cluster/server0/log: defaultTrace.trc, but I don't know how to upload here, and what is more, I don't know where is that XML file referenced in the message, this is what I'm asking for.
    Thanks in advance, Santi.
    Message was edited by: Santiago Ruiz Ramos Also at /usr/sap/EPD/JC01/work I got these files ... dev_dispatcher, dev_dispatcher.b00 and dev_dispatcher.b01 Below are attached as you requested me. Once time more, thanks in advanced for your help.
    Message was edited by: Santiago Ruiz Ramos
    Gosh, I have again problems to attach a file, because I have packed all std* in std.rar file
    I'll send you as soon as possible.

  • ___When I have a multi page Ai file and 'Save as', it saves more than just the page I specified

    When I have a multi page Ai fil e (50 pages) and 'Save as', it saves more than just the single page I specified (ie. Range 1-1)... it saves all 50 over again? How do I just save 1 of the 50?

    Just answered my own question - if I use 'Save a copy' it works... must be a glitch

  • Undo file Having huge read average time more than 20ms

    Please,
    I'm working on oracle 10g, windows server 2003.
    From the file I/O stats, I found that the Average read I/O from the undo files is more than 20ms, this contrast with other files where the same I/O metric is less then 0.5ms.
    Can someone give me a clue?
    thanks a lot

    I assume 'undo files' you mentioned means datafiles of undo tablespace: Yes
    How did you determined the I/O metric ? What tools used?, the following script
    column FILE_NAME format a30
    column PHYRDS format 999999,999
    column PHYWRTS format 999999,999
    column READTIM format 999999,999
    column "READ AVG (ms)" format 999.99
    column "TOTAL I/O" format 999999,999
    select
    FILE_NAME,
    PHYRDS,
    READTIM,
    PHYWRTS,
    READTIM / (PHYRDS + 1) "READ AVG (ms)",
    PHYRDS + PHYWRTS "TOTAL I/O"
    from
    V$FILESTAT a,
    DBA_DATA_FILES b
    where
    a.FILE# = b.FILE_ID
    order by
    6 DESC;
    Are other files on the same storage as undo datafiles?, all files datafiles,redo files, cotrol files are on the same storage.
    How are your disk storage configured?, it may be a RAID X technology, because the level is unknown.
    By default our client cannot accept to move the undo file to another storage, that's why all data files are stored on the same drive.
    So what can cause the undo read average time to be so high?
    Thanks again

  • INDESIGN GLITCH: Creating an XML file from Indesign Layout - Issue "Using more than one line of GREP" & "Map Styles to Tags"

    I currently create XML from InDesign CC by Mapping Style to Tags.
    - The Paragraph Styles are manually apply to text. These styles include multiple lines of GREP to automatically apply character styles.
    - I map some of the paragraph and character styles to prebuilt tags that have the same name "Map Styles to Tags".
    I have found through trouble-shooting that InDesign is unable to "Map Styles to Tags" for more than one line of GREP. I therefore have to chose which line of GREP to automatically tag and which lines to manually tag.
    Please can anyone help, I need to automatically map tags to at least two character styles in one paragraph via GREP.
    Thanks,

    OK. The best I can suggest is running a Find/Change like this:
    Which will actually apply the character style to the italics (and I would do the bold as well just to make certain). Then run the Map Styles to Tags again, using the Apply by Name. Which will tag the italics.
    I don't know why ID can map to the bold and not the italic character style. It either should do them both (as in this instance) or none at all as the character styles are not actually applied by the grep, just the styling from the character styles.
    Mike

  • MS Outlook 2010 - Group by subject and show messages which has count of more than four

    Hi there,
    Like everyone I have hundreds of emails hitting me daily. I always wanted these two ways enabled in outlook to reduce my inbox. Can anyone let me know if this is possible, if not MS product team you got a request.
    1) Outlook lets us to group all the messages by subject BUT it doesn't sort by the highest amount messages.
    Ex: Out of 100 messages in inbox, lets say msg A: same subject - 10 emails; msg B: same subject - 5 emails... rest are single subject eamils.
    when i group by subject i would want msg A and msg B to show first, so that i can take action.
    2) Same concept but want to filter only emails which has more than FOUR replies on the same subject
    Thanks for taking look at my questions.

    Just wanted to say hi and check if there is anything else that I can do for you on this problem.If so, please do not hesitate to let me know and I
    will be happy to help.
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Not able to get the data from variables contained in more than 1 mxml file

    I have got 5 Bindable Public integer variables in total in 5 mxml files (Pages). Each variable is assigned it's value in a Public function in each of the mxml files.
    What I need to do is add up the values of the 5 variables. The way I approached this was to create a public function add5Variable in my main mxml file (Page1) as shown below.
    [Bindable]
    public var varTotal:int = 0;
    public  
    varTotal = (variableP1 +
    Page2.variableP2 + Page3.variableP3 + Page4.variableP4 + Page5.variableP5);
    return(varTotal);
    I have got a TextInput field on Page5 where I display the varTotal. The function add5Variable is called when moving from Page to Page.
    The results I am getting is that the varTotal will always be the value of variableP1. When I tried some debugging in Flex Builder it showed me that the other 4 variables had a value of 0.
    Why is this the case and do you have any suggestions on how I can get the correct total for varTotal?
    Thanks
    function add5Variable():int {

    The code below looks correct. Is that the expected behavior of your app?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
    <![CDATA[
    public var ValueP2:Number = 0;
    private var grossValue:Number = 0;
    private var totalValue:Number = 0;
    private var finalTotalP2:int = 0;
    public function test():void {
    if (Number(TextInput2.text) == 1 || Number(TextInput2.text) == 2)
    ValueP2 = 1;
    totalValue = grossValue + ValueP2;
    else if (Number(TextInput2.text) == 3 || Number(TextInput2.text) == 4) {
    ValueP2 = 5;
    totalValue = grossValue + ValueP2;
    else if (Number(TextInput2.text) == 5 || Number(TextInput2.text) == 6) {
    ValueP2 = 9;
    totalValue = grossValue + ValueP2;
    trace("totalValue "+totalValue);
    finalValueP2(totalValue);
    public function finalValueP2(tVP2:int):int {
    var tallyP2:int = 0;
    if (tVP2 < 3)tallyP2 = 1;
    if (tVP2 >= 3 && tVP2 <5)tallyP2 = 2;
    if (tVP2 >= 5 && tVP2 <10)tallyP2 = 3;
    finalTotalP2 = tallyP2 * 7;
    trace("finalTotalP2 " +finalTotalP2);
    return(finalTotalP2);
    ]]>
    </mx:Script>
    <mx:TextInput id="TextInput2" enter="test()"/>
    </mx:Application>

  • Downloaded new version of iTunes, more than half of library disappeared.  Can I get it back??

    We haven't used the iTouch in a few months, and it's probably close to a year since I've downloaded anything from the iTunes Store.  Today, when I opened iTunes on my computer it stated that a new version was available for download.  I downloaded it.  Now my library is 1/3 its normal size with only one playlist (used to be 3 of them).  Any suggestions for getting my library and playlists back?  Will syncing with the iTouch do the trick??  Thanks in advance!

    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    tt2

  • Get files out of version cue

    We are finally moving from version cue. Is there an easy way to access my files? I've heard an extraction takes forever.

    You should ask in the Version cue forum.

Maybe you are looking for

  • Can I sync a single calendar to two separate mobile me accounts

    My wife and I have separate dot mac accounts and separate mobil me accounts. We each keep separate work and personal contacts and calendars on our computers and they sync to our separate I phones. We would like to have a single family calendar that w

  • Is it possible to scroll the current highlighted bookmark into view?

    I have a PDF with a lot of bookmarks and the current one, that points to the first page of the document, is highlighted. Sometimes that bookmark will be a long way down the bookmarks list and so initially out of view. The bookmarks have been created

  • Sap afs - how to customize matrix grid in sales order creation

    Hello, can anyone help to understand how to customize the matrix grid shown at sales order creation/change (VA01 - AFS Item overview tab - Matrix entry pushbutton). Here system, starting from inserted material nr, shows all possible combination from

  • Amsn + iSight VS. Me

    i use Amsn as my msn application (i think anyone will agree that microsoft messenger for mac is just the worst excuse for msn users who switched to mac but still wanna have all their old functions) anyways. amsn used to connect the webcam brilliantly

  • BizTalk Map selection

    Hi, I am trying to understand how Map selection happens under the hood in the BizTalk engine. Say i have 3 message types, X , Y and Z. I have 2 maps: X to Y X to Z. so the source message type is the same for the maps. In the Receive port, i define bo