zoukankan      html  css  js  c++  java
  • [转]如何删除放置库(How to Delete the Drop Off Library)in SharePoint 2010

    Content Organizer is a new feature in SharePoint Server 2010. If you enable the Content Organizer feature it adds a library called “Drop Off Library” to the site. The idea is that after you fill out the properties of a file, the file can be automatically moved to another library or folder according to rules created by the site owner. In other words, this is a document routing feature available in SharePoint Server 2010. In Microsoft Office SharePoint Server (MOSS) 2007 the routing feature was available for records routing in the Record Center site. In SharePoint Server 2010 it is available for all the sites.

    Due to a bug, or some people may consider this a “feature”, once you activate the Content Organizer feature the Drop Off Library cannot be deleted because the option “Delete this document library’ is not available under Permissions and Management.

    Obviously, you can hide the Drop Off Library under Navigation but that won’t delete the library itself. I am not sure why the option to delete is not available in the Library Settings but there are a couple of ways to work around this problem. You can either use SharePoint Manager 2010 from CodePlex or you can use the PowerShell. I recommend the PowerShell option.

    Option 1: SharePoint Manager 2010

    SharePoint Manager 2010 is an object model explorer. You can open the site and set the AllowDeletion property to true and then save the setting. You can download the SharePoint Manager 2010 here.

    Option 2: PowerShell Script (recommended)

    The second method is to use a PowerShell script. I prefer this method because in my opinion this option is much safer and easier than installing additional software on the server. Here are the steps.

    1. In Windows Server 2008 go to Start, All Programs, Accessories, Windows PowerShell, Windows PowerShell ISE. DO NOT start the 32-bit version (x86), make sure you are starting the 64-bit version.
    2. Register the SharePoint PowerShell commands by using the following command. If you used the 32-bit version of PowerShell ISE the command will fail.
      Add-PSSnapIn Microsoft.SharePoint.PowerShell
    3. Now one-by-one run the following four commands.

    $spWeb = Get-SPWeb -Identity http://YourDomainName
    $spLibrary = $spWeb.GetList(“http://YourDomainName/YourSiteName/DropOffLibrary“)
    $spLibrary.AllowDeletion = “True”
    $spLibrary.Update()

    Replace the domain and site name in the above script, for example.

    $spWeb = Get-SPWeb -Identity https://extranet.seattlepro.com/microsoft
    $spLibrary = $spWeb.GetList(“https://extranet.seattlepro.com/microsoft/DropOffLibrary“)
    $spLibrary.AllowDeletion = “True”
    $spLibrary.Update()

    As soon as you execute the last step and refresh the Document Library Settings page, you will see the option to delete the Drop Off Library available in the GUI, as shown below. Now you can delete the library.

    If you have additional sites that you need to delete the Drop Off Library, you will need to run the scripts for those sites as well.


    转自:http://blog.techgalaxy.net/archives/2851

  • 相关阅读:
    python批量裁剪图片
    Theano 报错:No suitable SharedVariable constructor could be found. Are you sure all kwargs are supported? We do not support the parameter dtype or type
    清华镜像连接
    ubuntu16.04查看占用GPU的程序
    pycharm报错:ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory
    PyMysql的基本操作
    关于爬虫解析页面时的一些有意思的坑
    关于爬虫解析页面时的一些有意思的坑
    python 的一些高级函数
    python 的一些高级函数
  • 原文地址:https://www.cnblogs.com/jancco/p/2488888.html
Copyright © 2011-2022 走看看