
Search Administration with PowerShell
195
Backup-SPSite
Restore-SPFarm
Restore-SPSite
There is no restore cmdlet for the conguration database. To restore a conguration database, you
need to use the
Restore-SPFarm cmdlet with the ConfigurationOnly switch parameter:
Restore-SPFarm –Directory “H:\Backups” –ConfigurationOnly –RestoreMethod Overwrite
SEARCH ADMINISTRATION WITH POWERSHELL
Scripting out Search-related operations in PowerShell saves time when trying to replicate congura-
tions across environments — especially when creating new managed properties. Two sets of PowerShell
cmdlets involve the Search Service in SharePoint: SharePoint Foundation Search and Enterprise Search.
The Enterprise Search functionality is available only with the enterprise license of SharePoint 2010.
SharePoint Foundation Search
If you run SharePoint 2010 Foundation or SharePoint 2010 Standard Edition, your farm is set up to
use the SharePoint Foundation Search. This is facilitated by the Search Service application.
You may view the Search Service application by issuing a
Get-SPSearchService command in the
PowerShell window, as shown in Figure7-12.
FIGURE712: Displaying the Search Service
105054c07.indd 195 1/10/12 3:34 PM