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