Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Using Powershell to remove a send to connector in Sharepoint

$
0
0

Hi

Using Powershell I have accidently created a Send To connector on our SharePoint test environment with no name. This now causes the GUI to crash on any screen that need to enumerate.

This is the code I ran without defining $archive or $URL

 $WebApp = Get-SPWebApplication $workflow
 $SPOfficialFileHost = New-Object Microsoft.SharePoint.SPOfficialFileHost

 #Set Send to Options

 #Send to Connection Name
 $SPOfficialFileHost.OfficialFileName = $Archive

 #Send to Target location
 $SPOfficialFileHost.OfficialFileUrl = "$URL"
 $SPOfficialFileHost.ShowOnSendToMenu = $true

 #Send to Operation
 $SPOfficialFileHost.Action=[Microsoft.SharePoint.SPOfficialFileAction]::Move

 #$SPOfficialFileHost.Explanation = "Send to connection for Project submission"
 $WebApp.OfficialFileHosts.Add($SPOfficialFileHost);
 $WebApp.Update()

Does anyone know a way to use the power of Powershell to delete this connector? My only other option at this point would be to restore the system and I'm not keen to do that.

BTW I know in many ways this is a SharePoint question and I've posted a question there as well.  It's just that I normally get such good answers from this forum.

Alex


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>