Category Archives: Sharepoint 2010 Powershell

set Custom Error page in Powershell command


set Custom Error page in Powershell command C:\PS>Set-SPCustomLayoutsPage -Identity “_layouts/accessdenied.aspx” -Relat ivePath “/_layouts/custompages/myaccessdenied.aspx” -WebApplication “http:/ /server_name/mywebapp” This example maps the specified path for the AccessDenied layout page in th e Web application “http://server_name/mywebapp“.

Posted in Sharepoint 2010 Powershell | Leave a comment

SharePoint 2010 with Windows PowerShell Remoting Step by Step


SharePoint 2010 with Windows PowerShell Remoting Step by Step http://blogs.msdn.com/b/opal/archive/2010/03/07/sharepoint-2010-with-windows-powershell-remoting-step-by-step.aspx Other References: http://www.powershell.nu/2009/09/08/moss-2007-script-collection/

Posted in Sharepoint 2010 Powershell | Leave a comment

Powershell Commands Used for Production Deployment


Powershell Commands Used for Production Deployment PowerShell Commands Site Backup: backup-spsite http://serverurl -path d:\temp\filepath.bak Site Restore :  restore-spsite http://igrid101:8888 -path d:\temp\neo1800site.bak -force Add WSP Solution : Add-SPSolution -LiteralPath c:\Solutionname.wsp Deploy the Wsp Solution : Install-SPSolution -Identity contoso_solution.wsp -GACDeployment

Posted in Sharepoint 2010 Powershell | Leave a comment