The Set-SPWebApplication cmdlet configures the Web application specified by the Identity parameter. For any settings that are zone-specific (for the Zone parameter set), the zone to configure must be provided. The provided zone must already exist.
Get-SPWebApplication http://server | Set-SPWebApplication -Zone “Extranet” -HostHeader “http://www.justsharepoint.com” – AllowAnonymousAccess
This example sets the
HostHeader URL for the
Extranet zone of the given Web application as
http://www.justsharepoint.com and enables anonymous access.
Early this week on site deploying SharePoint 2010, the client wanted to create few site collections for their development team. He tried to create using the Central Administration and could not see any options for creating SharePoint site collections in their own databases!
Well, that’s not news to all of us in the SharePoint World! Is it?
Continue reading “How To Create SharePoint 2010 Site Collection In Its Own DB”
With Windows PowerShell you can now back up your SharePoint Site Collections either one off or using scripts that can be scheduled.
Although you can use the Central Administration to back up your site collection as a once off task, you get additional options using Windows PowerShell, such as using SQL Snapshots for backing up SharePoint 2010 Site Collections.
Backup-SPSite http://server_name/sites/site_name -Path C:\Backup\site_name.bak
Get-SPSiteAdministration http://server_name/sites/site_name | Backup-SPSite -Path C:\Backup\site_name.bak
Backup-SPSite http://server_name/sites/site_name -Path C:\Backup\site_name.bak –UseSqlSnapshot
Note: You can use the UseSqlSnapshot parameter only if you are hosting your content database on SQL Server Enterprise Edition / SQL Server Developer Edition.
Windows PowerShell also gives you the flexibility of backing up several site collections using the thread parameter.