Posts

Showing posts from March, 2017

SMTP Configuration

Image
To install the SMTP service Verify that the user account that is performing this procedure is a member of the Administrators group on the front-end web server. Click Start , point to Administrative Tools , and then click Server Manager . In Server Manager, click Features . In Features Summary , click Add Features to open the Add Features Wizard. On the Select Features page, select SMTP Server . In the Add Features Wizard dialog box, click Add Required Roll Services , and then click Next . On the Confirm Installation Selections page, click Install . On the Installation Results page, ensure that the installation is complete, and then click Close . To Configure SMTP Server: 1.       Click Start , point to Administrative Tools , and then click Internet Information Services (IIS) 6.0 Manager . 2.       In IIS Manager, expand the server name that contains the SMTP ser...

Create Result source using Power Shell SP2013 Search service

Add-PSSnapin Microsoft.SharePoint.PowerShell $ssa = Get-SPEnterpriseSearchServiceApplication $fedman = New-Object Microsoft.Office.Server.Search.Administration.Query.FederationManager($ssa) $searchOwner = Get-SPEnterpriseSearchOwner -Level Ssa # define query $query = '{searchTerms} path:"http://hmecd000125v:8014/sites/MobileApp/Lists/Residential Property" (contentclass:STS_List)" (contentclass:STS_List) IsActive:True' $queryProperties = New-Object Microsoft.Office.Server.Search.Query.Rules.QueryTransformProperties # create result source $resultSource = $fedManager.CreateSource($searchOwner) $resultSource.Name = 'SampleResidential1' $resultSource.ProviderId = $fedManager.ListProviders()['Local SharePoint Provider'].Id $resultSource.CreateQueryTransform($queryProperties, $query) $resultSource.Commit() Delete All items in List write-host "This will delete data, type YES to continue" $retval = read-host if ($retval...