Posts

Showing posts from April, 2018

copy one list item to another

#################################################################### #Copy/Replace items from one list to another list with Attachments #Original Author:Adi #Enhancements - Author: Indra Appala #################################################################### Remove-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue    try    {       $srcListSiteUrl = "http://win-4qnjgfbpcf3:2323/sites/test/"       $SourceListName = "Contacts 1000"       $dstListSiteUrl = "http://win-4qnjgfbpcf3:2323/sites/test/"       $DestinationListName = "Contact"       $keyColumnInternalName = "Title"       $sourceListWeb = Get-SPWeb -identity $srcListSiteUrl       $sourceListUrl = $sourceListWeb.ServerRelativeUrl + "/lists/" + $SourceListName;       $dstListWeb = Get-SPWeb -identity $dstListSiteUrl       $destinationListUrl = $dstListWeb.

Download Deployed Solutions (WSP) from Central Admin with PowerShell in SharePoint 2013

    $FolderPath = "c:\Solutions"     foreach ($solution in Get-SPSolution)     {        $id = $Solution.SolutionID        $title = $Solution.Name        $filename = $Solution.SolutionFile.Name        $solution.SolutionFile.SaveAs("$FolderPath\$filename")     } 

We apologize for any inconvenience, but we've made the site read only while we're making some improvements

$admin = new-object Microsoft.SharePoint.Administration.SPSiteAdministration ("http://192.168.10.50/") $admin.ClearMaintenanceMode()