Switch version type on library with powershell

I'm using the script below to enable versioning on all libraries in my site collection but in some cases a library already has versioning enabled and it's set to 'Create
major and minor (draft) versions'.  When this is set I would like the script to revert the setting to 'Create major
versions'  - How can this be built into the script?  Thanks
Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue
$siteURL = $args[0]
$site = Get-SPSite($siteURL)
foreach($web in $site.AllWebs) {
 Write-Host "Inspecting " $web.Title
 foreach ($list in $web.Lists) {
 if($list.BaseType -eq "DocumentLibrary") {
 Write-Host "Versioning enabled: " $list.EnableVersioning
 $host.UI.WriteLine()
 Write-Host "EnableModeration: " $list.EnableModeration
 $host.UI.WriteLine()
 Write-Host "Major Versions: " $list.MajorVersionLimit
 $host.UI.WriteLine()
 $list.EnableVersioning = $true
 $list.MajorVersionLimit = 5
 $list.Update()
 Write-Host $list.Title " is updated with MajorVersionLimit 5 "

Hi,
Here is the line you could use to reset the version control without minor version
#Disable creation of minor (draft) versions (document libraries only)
$list.EnableMinorVersions = $false
Samuel Levesque | http://sharepointerie.com | Please remember to click “Mark as Answer” on the post that
helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

Similar Messages

  • ITunes Shared library with all users on one computer

    I am trying to share my iTunes (version 8.2) library with all the users on my computer. So far, this is what I have done:
    1) I have moved the music folder into the shared folder.
    2) I have selected "Add to Library" in all three accounts.
    3) I have tried checking and unchecking the "Copy files to iTunes Music folder when adding to library."
    Since then, I have added some CDs that had some songs that I already had. When I loaded these CDs, I deleted the duplicates that had the worse sound. Since then, everything is unwinding. The additions on one user account are not being added to the others. When I delete a track, iTunes (obviously) says that it can't find the song anymore. What's odd is that I then delete the one that is missing, and both are missing now: the one that I deleted on the original account and the one that I did not delete on the original account.
    I am starting to think that I need to start from scratch. So, to make a long story short (too late), how can I share my iTunes library with all users on one computer, where I can make a change in one account that will update automatically on the other accounts. If it can't be updated automatically, how can I add/delete files without causing the headaches I am currently having?
    Brian

    I actually followed this, but I still had problems that I listed above. Is there any way that when you make changes to one account (even if there is only one main account where changes are made), the changes are automatically (or at least easily) applied to the other user accounts?

  • Cluster Switch Version - Minimizing Downtime

    Hi guys,
    We are due to do a switch version for a customer with a PUB/SUB configuration. Both have had the update installed and sitting in the inactive partition.
    In the past, what I would have done is to disconnect the SUB from the network, switch version on the PUB, allow it time to come up and for the phones to upgrade and re-register. After this, I would switch version on the SUB, allow it to come up, and then re-connect it to the network.
    In this case, there is no time when the business is completely closed so the customer is worried about minimizing the amount of dowtime. Reading the documentation, I have found:
    All servers in a cluster must run the same release  of Cisco Unified Communications Manager. The only exception is during a  cluster software upgrade, during which a temporary mismatch is allowed.
    Does this mean I can switch version on the PUB whilst leaving the SUB connected and have the phones failover to it, then wait for the PUB to come back up again before performing the switch version on the SUB? To me this seems a bit dangerous as there will be a version of the database on two different version numbers?
    Thanks
    Sean

    Hi Sean,
    Your process is spot on! Make sure you leave lots of time for the Pub
    to fully come back online after doing the switch version before starting the Sub.
    Other than that you look good to go;
    http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/cucos/7_1_2/cucos/iptpch7.html#wp1179637
    Cheers!
    Rob
    PS: +5 for Will, Java & Aaron for their great work here
    "Clocks go slow in a place of work
    Minutes drag and the hours jerk" 
    -The Clash

  • How do I import my type file library from an older version of cs2

    I recently upgraded to cc from cs2 and now need to know how to import my type font library from my older version. All of my current artwork is not being displayed correctly because the fonts aren't recognized.

    There are a some fonts that gets installed with the Adobe app, and only get loaded when Ilustrator is booted.
    /Applications/Adobe Illustrator CS6/Adobe Illustrator.app/Required/Fonts/
    To better help you will need answers to these questions
    What OS you are on
    What fonts you are having trouble with
    Do you use any font utility such as an Extensis product, or fontbook on mac to manage you fonts.
    as this also may be a problem with your font cache needing to be reset.

  • IPhoto 08 Version 7.1.5 with 510 gb in a single library. I move it to a hd but can't open in a new mac iphoto version 8. It rebuilds and then stops. What to do?

    iPhoto 08 Version 7.1.5 with 510 gb in a single library. I move it to a hd but can't open in a new mac with iphoto version 8. It rebuilds and then stops. What to do?

    Select your My Book Studio for Mac icon on your Desktop and type Command + i to bring up its Info pane.  Check the formatting.  It should look like this:
    If it's not formatted as such you'll need to reformat it after backing up what's on there now.
    OT

  • Missing or invalid version of SQL Library PSORA with 8.50

    Although unsupported, I am trying to get a HCM 9.1 on PT 8.50.05 running on a 64 bit Windows 7 Pro laptop. Running 11.1.0.7 Windows 2008 64 bit Oracle. I installed the 32 bit Oracle 11.1.0.7 client for Win2008 also.
    Every thing seems OK until I try to start an App Server domain. I can login two-tier via PS. I can connect sqlplus with SYSADM and people. I ran the VERSION AE process without incident. Datamover runs fine with PS and bootstrap.
    When I try to boot my domain, I get the "Missing or invalid version of SQL library PSORA (200,0)" error. In stderr file it notes "LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=126".
    I have the path to my 32bit client files within the app servers' AddtoPath setting. I even tried using the UseLocalOracleDB settings but that didn't help either.
    Any of you smart folks have any suggestions (aside from using a Supported OS and calling Oracle support)?

    I set the app server log fence to 5 and it still doesn't provide any real insight. Sorry if this i little long:
    PSADMIN.3916 (0) [01/25/10 10:00:51](0) Begin boot attempt on domain HR91DMO
    PSAPPSRV.2868 (0) [01/25/10 10:01:28](0) PeopleTools Release 8.50.05 (WinX86) starting. Tuxedo server is APPSRV(99)/2
    PSAPPSRV.2868 (0) [01/25/10 10:01:28](4) Server Environment:
    PSAPPSRV.2868 (0) [01/25/10 10:01:28](4) Server Configuration Settings: {logging level=5, sql trace=15, client sql trace mask=12319, peoplecode trace=0, client PC trace mask=4095, Time-out=0, recycle count=1000, max conseq svc failures=0, database type=ORACLE, database name='HR91DMO', database server='*****', user id='PS', connect id='people'}
    PSAPPSRV.2868 (0) [01/25/10 10:01:28](0) Cache Directory being used: C:\PT8.50\PS_CFG_HOME\appserv\HR91DMO\CACHE\PSAPPSRV_2\
    PSAPPSRV.2868 (0) [01/25/10 10:01:28](1) GenMessageBox(200, 0, M): PS General SQL Routines: Missing or invalid version of SQL library PSORA (200,0)
    PSAPPSRV.2868 (0) [01/25/10 10:01:28](1) GenMessageBox(0, 0, M): Database Signon: Could not sign on to database HR91DMO with user PS.
    PSAPPSRV.2868 (0) [01/25/10 10:01:28](0) Server failed to start
    PSADMIN.3916 (0) [01/25/10 10:01:35](0) End boot attempt on domain HR91DMO
    Tux log just has
    100106.MPMCT3!tmadmin.2164.2188.-2: TMADMIN_CAT:1330: INFO: Command: boot -A
    100109.MPMCT3!tmboot.3816.3796.-2: 01-25-2010: Tuxedo Version 10.3.0.0 with VS2005, 32-bit
    100109.MPMCT3!tmboot.3816.3796.-2: CMDTUX_CAT:1851: INFO: TM_BOOTTIMEOUT is set to 120 seconds
    100109.MPMCT3!tmboot.3816.3796.-2: CMDTUX_CAT:1855: INFO: TM_BOOTPRESUMEDFAIL option is selected
    100113.MPMCT3!BBL.3872.3804.0: 01-25-2010: Tuxedo Version 10.3.0.0 with VS2005, 32-bit, Patch Level (none)
    100113.MPMCT3!BBL.3872.3804.0: LIBTUX_CAT:262: INFO: Standard main starting
    100115.MPMCT3!tmboot.3076.696.-2: 01-25-2010: Tuxedo Version 10.3.0.0 with VS2005, 32-bit
    100115.MPMCT3!tmboot.3076.696.-2: CMDTUX_CAT:1851: INFO: TM_BOOTTIMEOUT is set to 120 seconds
    100115.MPMCT3!tmboot.3076.696.-2: CMDTUX_CAT:1855: INFO: TM_BOOTPRESUMEDFAIL option is selected
    100117.MPMCT3!PSWATCHSRV.356.1968.-2: 01-25-2010: Tuxedo Version 10.3.0.0 with VS2005, 32-bit
    100117.MPMCT3!PSWATCHSRV.356.1968.-2: LIBTUX_CAT:262: INFO: Standard main starting
    100127.MPMCT3!PSAPPSRV.2868.1040.0: 01-25-2010: Tuxedo Version 10.3.0.0 with VS2005, 32-bit
    100127.MPMCT3!PSAPPSRV.2868.1040.0: LIBTUX_CAT:262: INFO: Standard main starting
    100128.MPMCT3!PSAPPSRV.2868.1040.0: LIBTUX_CAT:250: ERROR: tpsvrinit() failed
    100129.MPMCT3!tmboot.3076.696.-2: tmboot: CMDTUX_CAT:827: ERROR: Fatal error encountered; initiating user error handler
    100132.MPMCT3!BBL.3872.3804.0: CMDTUX_CAT:26: INFO: The BBL is exiting system
    100135.MPMCT3!PSADMIN.3916: End boot attempt on domain HR91DMO
    Stderr has this
    LoadLibraryA() in pscompat.dll failed for 'PSORA.dll': reason=126
    Edited by: Chris.C on 25-Jan-2010 1:25 PM

  • Batch uploading to a document library with content types

    Hi,
    I have a document library with two content types. Now I need to upload documents to this document library. However, if I have large number of files, then uploading through web UI is a pain as metadata will not be attached. How should I automate it  from
    my computer using powershell without relying on Administrator to run the powershell script. Or is there any other way to do it without using powershell? or  can powershell be run remotely from an end user computer?
    Note I am using SharePoint 2010.

    Hi,
    According to your post, my understanding is that you want to butch upload files to document library with content types.
    There are two good tools in CodePlex which can batch upload files with content types, you can have a look at them.
    DocMetaMan : Bulk document Upload and MetaData (Taxonomy) Setter
    SharePoint Multiple File Upload Script
    There are some third-party tools which can achieve the same scenario, you can refer to it.
    http://sharepoint.stackexchange.com/questions/74694/uploading-multiple-files-with-metadata
    Thanks,
    Jason
    Forum Support
    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]
    Jason Guo
    TechNet Community Support

  • Sharing Itunes library with another User Account & Fast Switching

    Hi. I recently purchased a new iMac G5 and am in the process of setting it up to be used by 2 separate users (girlfriend and me). I apologize in advance if this is more of an Itunes issue and not solely an Administration issue.
    My question deals with creating a new user account on my Mac (with Fast Switching) and allowing my girlfriend to share my iTunes library with the ability to transfer music to her ipod when she is logged into her own unique account. I will be the Administrator on the Mac.
    We are trying to avoid loading our music two times into the Mac under each of our logins. Is there a way that we can share the music I have already loaded into my Itunes library when she is logged into her account so that she can transfer to her ipod and create her own distinct playlists? If so, any advice on how to enable this would be greatly appreciated.
    Thanks.
    Seth
    iMac G5   Mac OS X (10.4.3)  

    Unfortunately, baltwo's solution will not allow your girlfriend to create any playlists or copy songs to iPod.
    The easiest thing would be to share the entire music folder, so anyone of you can listen to your music.
    You'd have two options.
    If you want to be using the exact same library, so any playlist you created can be edited by your girlfriend and vice versa:
    1. Go to yourusername/Music/iTunes. You'll find two files called "iTunes library" and "iTunes music library" Copy them to your desktop, so you'll have a backup just in case.
    2. Move your yourusername/Music folder to computer/users/shared. (The folder will be copied ONLY in case your using FileVault, so you'd have to delete the original User/Music folder after making sure you'd got a functional copy at computer/users/shared) Select users/shared, press "apple+i" to get the info window, go to "Ownership" change all permissions to "read & write" and hit "apply to enclosed items"
    3. In case you're using FileVault, either delete or rename the original Music folder within your own account. Again, not necessary as long as FileVault isn't enabled.
    4. Select computer/users/shared/music, hold down "ctrl" while clicking on it and choose "create alias" from the contextual menu. Copy that alias into your homefolder as well as your girlfriend's account (need to log in) and rename it to "music" without the "alias" at the end.
    5. Launch iTunes. Done.
    6. Don't worry, in case you don't see your music. I've used a slightly different approach, yet this one should work totally fine.
    If you want to listen to the same music, yet be able to set up your own playlists, ratings etc.:
    For your account:
    - go to yourusername/Music/iTunes, move "iTunes Music" to computer/users/shared and change ownership according to #2.
    - If FileVault is enabled, check #3. Of course, you want to rename the original "iTunes Music" in this case.
    - create an alias for computer/users/shared/iTunes Music and copy the alias to yourusername/Music/iTunes. Rename it to "iTunes Music" without "alias".
    - Launch iTunes. Should be working the way it used to. Quit.
    For your girlfriend's account:
    - log in, copy alias to username/Music/iTunes, rename alias.
    - Launch iTunes, go to File-> Add to Library, select username/Music/iTunes/iTunes Music, choose.
    That's it.
    The only downside is, only one user at a time can access the music folder, so if you're logged in and running iTunes, you're girlfriend, logged in via fast user switching, won't be able to open iTunes until you quit it for yourself. Haven't found a way around this yet.
    Fell free to report any issues.
    huhh...rather long posting...

  • I upgraded my Itunes to the latest version and now it won't let me view my library with the column browser. Can i get that back?

    i upgraded my Itunes to the latest version and now it won't let me view my library with the column browser. Can i get that back? I tried using the shortcut for it and nothing happens. When I try to do it from the view menu, it shows up as something I can't click on. The new library format is driving me crazy and I just want to get back to the old library view.

    We need to sort out some facts here first:
    •  You cannot be running Mt. Lion on your iMac G5.  What Mac is it?  What is the Model Identifier listed in About This Mac; More Info; Hardware Overview
    •  What is the model of your Epson Scanner?
    •  Have you attempted to scan using Image Capture, located in your Applications folder?
    •  Your Palm Pilot software will only run in Snow Leopard; so depending upon which Mac you have, you will either have to:
    1)  partition your hard drive or add an external hard drive and install Snow Leopard into it to "dual-boot" when you want to access you Palm software, or
    2)  install Snow Leopard Server (now available from Apple for $20 telephone orders USA & Canda only) into Parallels 8 to run your Palm software in Mt. Lion:
                                  [click on image to enlarge]

  • I just created a new iPhoto library with holding the option key down and then opening iPhoto with version 7.1.5.  I changed the name of the first library to iPhoto library 1 and now I all my photos are gone.  My operating system is Mavericks.

    I just created a new iPhoto library with holding the option key down and then opening iPhoto with version 7.1.5.  I changed the name of the first library to iPhoto library 1 and now I all my photos are gone.  My operating system is Mavericks.

    launch iPhoto wile holding down the option key and select the original library - when you create a new library of course it is empty
    And you seriously need to backup your iPhoto library and purchase and install iPhoto '11 version 9.5.x from the App store and download and run the iPhoto library upgraded \then run the new iPhoto - 7.1.5 is not fully compatible with Mavericks
    LN
    PS you also need to update your profile - it states that you have OS X 10.6.8

  • I have a MacBook Pro version 10.7.5 Every time I try to open iphoto I get the warning: "To open your library with this version of iPhoto, it first needs to be prepared. You have opened this photo library with a newer version of iPhoto." How do I do this?

    I have a MacBook Pro version 10.7.5 Every time I try to open iphoto I get the warning: "To open your library with this version of iPhoto, it first needs to be prepared. You have opened this photo library with a newer version of iPhoto." How do I do this? I recently bought aperature, and it has been since then that I get this warning.
    Thank you!

    No I have not tried those things. I don't even know what that means I suppose I have the newest version of aperature; I just bought it 4 days ago.

  • Can't open iPhoto "To open your library with this version of iPhoto, it first needs to be prepared. To prepare the library, use the iPhoto Library Upgrader available from Apple." Doesn't work...

    I've tried to open my iPhoto and a message box opens up and reads "To open your library with this version of iPhoto, it first needs to be prepared. To prepare the library, use the iPhoto Library Upgrader available from Apple." I update this and this message continues to pop up. I've even tried to rebuild it, but no matter what I do the same message appears and iPhoto still wpn't open. Can somebody please help me?!

    i'm having the same problem with my iMac (Mac OS X 10.7.5) . i haven't really made any updates to it and yesterday when i tried to access the iPhoto library of my MBP (from my iMac) is when problems started. The iPhoto on the iMac initially said I need to install the recent version of the iPhoto. Since I can't find a 9.0 download, I went to buy the iPhoto on the App store.
    When I tried to install iPhoto (version 9.4.3) to the iMac, I got this message:
    The iPhoto Library Upgrader is a tool that prepares libraries from iPhoto 5 or earlier, so you can upgrade them with the current version of iPhoto. You can download the tool here.
    Note: If your library is from iPhoto 6 or later, this tool is not required."
    I then installed the iPhone Library Upgrader, but I got the same prompt:
    'You can't open your current photo library using this version of the iPhoto. You have made changes to your library using a newer version of iPhoto. Please quit and use the latest version of iPhoto."
    I guess this takes me back to square one? I am inclined to buy the iLife on eBay with the iPhoto 9.0 version, but needed to know if this is the case before I unfortunately bite the bullet.

  • HT5037 All of a sudden I can't open my iPhoto library.  I get a message that says "To open your library with this version of iPhoto, it first needs to be prepared.  It takes me to this page.  Bought MacBook Pro 11/2012.  Don't have a clue as to version of

    All of a sudden I can't open my iPhoto library.  I get a message that says "To open your library with this version of iPhoto, it first needs to be prepared.  It takes me to this page.  Bought MacBook Pro 11/2012.  Don't have a clue as to version of IPhoto

    Is this library one that you've been using since you bought the MBP?  If so and you're running iPhoto 9 then apply the two fixes below in order as needed: 
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start with
    Option #3, followed by #4 and then #1 as needed.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • IPhoto was working fine. Performed update for HP printer, which  should have nothing to do with iPhoto. But the next time I tried to open iPhoto, got this message. "To open your library with this version of iPhote, it first needs to be prepared." When I g

    iPhoto was working fine. Performed update for HP printer, which  should have nothing to do with iPhoto. But the next time I tried to open iPhoto, got this message. "To open your library with this version of iPhote, it first needs to be prepared." When I g

    What version of iPhoto? Assuming 09 or later...
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • HT5037 I keep getting this message despite already upgrading on my new Mac.To open your library with this version of iPhoto, it first needs to be prepared.

    I just purchased a new Mac OS x 10.9.1.
    I'm trying to move over files from Passport which was my backup for my old Mac.   Not all my photos transported over.  I'm missing about 3 years worth.   I followed the instructions for the iphoto 11 upgrader for the library,  download, utility etc.  But no go.
    Now Iphoto -- the app -- wont open at all without thisk pop up:
    To open your library with this version of iPhoto, it first needs to be prepared
    To prepare the library, use the iPhoto Library Upgrader available from Apple.

    But
    Then you do not have an iPhoto library - it is not possible to move "some" of an iPhoto library - it is a single entity and must be treates as such
    Exactly how step by step did you do this?
    I was able to move virtually all my photos and "events" prior to 2010.
    I did create a copy of my old iPhoto library from the Passport drive on the desktop but that to gives me the "to open..."message when I tried to open it.
    So run the library upgrader (applications folder ==> utilities) against tha tlibrary and then open it using iPhoto 9.5.x
    LN

Maybe you are looking for

  • Some songs on my iPod have "duplicates" that I want to get rid of. I need help getting rid of them.

    So I just got my iPod touch 5th gen yesterday and with the new iTunes and ios, it's all really stupid and confusing. Just as I thought I was satisfied with the music on my iPod, I find out that some songs have two versions. I downloadable songs from

  • Class using another class access

    I'm sure this is not difficult, but finding the answer has been quite elusive for me. I'd like to start simple. I have two classes, Place and Address that look like this: public class Address{    private String street;    private String town;   ...so

  • DidReceiveRemoteNotification or didFinishLaunchingWithOptions do not get called in background

    I am using iOS 8.1 . I am sending the following APN {"aps":{"alert":{"body":"Hello sir","action-loc-key":"Caption of the second Button"},"badge":1,"sound":"default","content-available":1},"Key1":"Value1","Ke y2":"Value2"} As you see I am setting "con

  • Request for sample ZXRSRU01 code-  pass to VKF

    Hello, I wrote an earlier mssg but I fear I may have been too complicated in my request. I would like to pull a BEx variable user entry in and use it to calculate a key figure. I have the virtual KF code working fine. I just need help pulling the use

  • Creating connection on PPC

    Hi all I've been developing an app on the Pocket PC using the 'Flash Player 6 for Pocket PC 2003 (SAP)' to create a distributable projector. However, when i try using loadVariables, the projector won't open a connection and will only return data if t