Tweet
SIGN UP
MEMBER LOGIN:
TECHNOLOGIES
.NET 4.5
.NET Remoting in C#
Active Directory C#
ADO.NET in C#
AJAX in C#
Algorithms in C#
Android Programming
Articles C#
ASP, JavaScript, CSS
ASP.NET Controls in C#
ASP.NET MVC with C#
ASP.NET Programming
BizTalk Server
C# Assemblies
C# Language
C# Tutorials
C, C++, MFC
Career Advice
Chapters
Cloud Computing
COBOL.NET
Coding Best Practices
COM Interop
Compact Framework
Cryptography C#
Crystal Reports C#
Current Affairs
Custom Controls C#
Databases & DBA
Deployment
Design & Architecture
DirectX C#
Enterprise Development
Error Zone
Exception Handling C#
Expression Studio
F#
Files, Directories in C#
Financial Applications
Games Programming C#
GDI+ & Graphics
Hardware
How do I
HTML 5
Internet & Web
iPhone/iPad
Java
Java and .NET
JQuery
JSP
Leadership
Learn .NET
LINQ with C#
Metro Style Apps in C#
Mobile & Embedded
MonoDevelop
MSMQ in C#
Multithreading in C#
Networking
Office Development
OOP/OOD
Operating Systems
PHP
Printing in C#
Products
Project Management
Reports using C#
Robotics & Hardware
Security in .NET
SharePoint
Silverlight with C#
Smart Devices
Speech in C#
SQL
SQL Server 2012
String in C#
Team Foundation & VSS
Testing
Visual Basic .NET
Visual C#
Visual Studio .NET
Visual Studio 11
Visual Studio 2010
VS LightSwitch 2011
WCF with C#
Web Forms C#
Web Services in C#
WebForms Controls
Windows 8 in C#
Windows Controls C#
Windows Forms C#
Windows Phone in C#
Windows PowerShell
Windows Services in C#
Workflow Foundation in C#
WPF with C#
XAML with C#
XML in C#
XNA with C#
FORUMS
BLOGS
VIDEOS
INTERVIEWS
CERTIFICATIONS
DOWNLOADS
BOOKS
LINKS
NEWS
Learn .NET in 60 days – Part 1 (13 Labs)
Learn MVC (Model view controller) Step by Step ...
Learn C# Corner - Home
Using Border Radius and Gradients in CSS3: Part I
Learn C# Corner - Footer
Learn .NET and C# in 60 Days Lab13(Day 5): - C ...
iPhone 5 First Look
Samsung Galaxy Note Review
WCF - Authentication and Authorization in Ente ...
How to write a good article on C# Corner
Blog
Using Powershell for deploying Sharepoint 2010 Solution and Backup/Restore
Posted by
Vijay Settu
in
Blogs
|
SharePoint
on
Jan 18, 2012
In this blog I will describe how can we use powershell for deploying Sharepoint 2010 Solution and to performe Backup/Restore operations.
Tweet
777
0
0
Now, let see how to deploy the SharePoint 2010 solution using Powershell.
Step 1 :
Start->All Programs->MicrosoftSharepoint2010Products->open Sharepoint2010Managementshell
Type the command
Step 2 :
Add-SPSolution “C:\SharePoint2010Solution.wsp”
Step 3 :
Install-SPSolution -Identity SharePoint2010Solution.wsp -WebApplication http://myserver -GACDeployment
If you are using Sandbox Solution
Step 4 :
Install-SPUserSolution -Identity SharePoint2010Solution.wsp -WebApplication http://myserver -GACDeployment
For Updating the Sharepoint 2010 Solution type the following commands.
Step 5 :
Update-SPSolution -Identity SharePoint2010Solution.wsp -LiteralPath “C:\SharePoint2010Solution.wsp” -GacDeployment
For retract and remove a solution, type the following commands:
Step 6 :
Uninstall-SPSolution -Identity MySharePointSolution.wsp -WebApplication http://myserver
Step 7 :
Remove-SPSolution-Identity MySharePointSolution.wsp
Now let's see how to take Backup and Restore using Powershell.
Backup a Site collection with PowerShell command.
In SharePoint 2010, Power Shell command Backup-SPSite is used for taking backup. you can get details of the command from the msdn link. The following command will back up the site collection “
http://myserver
”.
Backup-SPSite -Identity
http://myserver
-Path "
c:\backup\files.bak
"
Restore a Site Collection with PowerShell command.
To restore site collection you'll use the following command. Use -Force if you want to overwrite the existing site collection.
Restore-SPSite -Identity
http://myserver
-Path "
c:\backup\files.bak
"
share this blog :
How to create a custom web servi..
SharePoint Training
Related Blogs
Restore the specified file version using SharePoint 2010 web service in powershell
Create Asset Library in SharePoint 2010 using Powershell
Create AllContent scope rule in SharePoint 2010 using Powershell
Start the SPService instance in SharePoint 2010 using Powershell
Configure Navigation Hierarchies using Single value Choice field in SharePoint 2010 using powershell
Configure Key Filters in SharePoint 2010 using powershell
post comment
Sponsored by
Become a Sponsor
More Blogs from this Blogger
What is Sharepoint 2010?
How to create a custom web service in SharePoint 2010
How to hide Ribbon from anonymous users in SharePoint
Using Powershell for deploying Sharepoint 2010 Solution and Backup/Restore
View All
Latest Blogs
Free Ride is Over for Desktop Developers in Visual Studio 11
DotNet developers most used application/tools launching through 'Run'
80-inch Windows 8 Tablet
Data encapsulation
Option to access the Column Names in Data table
Open multiple windows in browser startup. (Multiple homepages option)
I'm Sorry
const and readonly
Address, Binding and Contract in WCF
JQuery Maxchars Plugin
View All
Sponsored by
Become a Sponsor