Thursday, December 27, 2012

Create Send To Connection with PowerShell

In continuation to my post: SharePoint 2010 Configure Send To Connections , If you want to create send to connections programmatically or have multiple send to connections to create, PowerShell can help to automate it:

PowerShell Script to Create Send To Connections:

#Get the Web Application
$WebApp = Get-SPWebApplication ""

$SPOfficialFileHost = New-Object Microsoft.SharePoint.SPOfficialFileHost
#Set Send to Options#
#Send to Connection Name
$SPOfficialFileHost.OfficialFileName = "Project Directory"
#Send to Target location
$SPOfficialFileHost.OfficialFileUrl = ""
$SPOfficialFileHost.ShowOnSendToMenu = $true
#Send to Operation
$SPOfficialFileHost.Explanation = "Send to connection for Project submission"
Make sure you activated "Content Organizer" in Send To Target site before proceeding!

You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.

Check out these SharePoint products:

1 comment :

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...