locked
save sharepoint site without inheriting permissions RRS feed

  • Question

  • Hi,

    1) Is there any way to export/save particular sharepoint site without inheriting permissions?

    2) Is  there any way to save all the lists/libraries as template at one go?

    Thanks,

    Nilesh


    Thanks, Nilesh

    Monday, July 30, 2012 2:49 PM

Answers

  • Sure..

    $web = Get-SPWeb “MYURL”
    $path = “d:\admin\export\”

    foreach($list in $web.lists)
    {
    “Exporting ” +
    $list.RootFolder.URL
    export-spweb $web.URL -ItemUrl (“/” +
    $list.RootFolder.URL) -IncludeUserSecurity -IncludeVersions All -path ($path +
    $list + “.cmp”) -nologfile
    }


    Thanks, Nilesh

    Friday, August 3, 2012 2:36 PM

All replies