PowerShell To Backup Site Collection

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.

PowerShell To Change SharePoint Diagnostic Log File Location

The following PowerShell cmdlet will get all the diagnostic configuration values

Get-SPDiagnosticConfig

clip_image001

If you want to change the location of your diagnostic configuration log use the following PowerShell cmdlet

Set-SPDiagnosticConfig -LogLocation D:\SharePointLogs\

Aussie First Internet Facing Site on SharePoint 2010

Last week or so, my good old mate, Ivan Brebner launched Digital Atmosphere public facing site on SharePoint 2010 Foundation (Beta)!

Congratulations to Ivan on this launch! I believe this is not only Aussie First but possibly the first SharePoint Consulting company (in Asia Pacific) to launch on SharePoint 2010 Foundation (Beta).

Check out the site which has been customised by Ivan himself and has a good mix of Silverlight as well!

Digital Atmosphere http://mysp.in/brebinator

SharePoint 2010 Beta and Exchange 2010 VHD Download

Early this week (Monday), I had tweeted that SharePoint 2010 Beta and Exchange 2010 Download was available for Microsoft Partners – SDPS. If you are following me on http://twitter.com/alpesh you know about it! This download has now been made available for everyone.

To quote from the download page:

Overview

This download contains a two Virtual Machine set for evaluating and demonstrating Office 2010 and SharePoint 2010.

Virtual machine “a” contains the following pre-configured software:

1. Windows Server 2008 SP2 Standard Edition x64, running as an Active Directory Domain Controller for the “CONTOSO.COM” domain with DNS and WINS

Help! Farm Admin cannot execute cmdlets in SP 2010 Management Shell

In order to execute farm level cmdlets in SharePoint Management Shell you will need to be given Shell Admin access. Even if you are a farm administrator and you have not been given Shell Admin Access, then you won’t be able to execute farm administrative operation using PowerShell. There are lots of operations that you cannot do via the Central Administration GUI and for which you will require Shell Admin Access.

List who has SP Shell Admin Access

Before you get started with addition, it would be good to check who has Shell Admin access using the following PowerShell cmdlet