Showing posts with label PowerShell. Show all posts
Showing posts with label PowerShell. Show all posts

Wednesday, December 19, 2012

Adding and Deploying Solutions in SharePoint 2010

Adding and Deploying Solutions in SharePoint 2010
How we can add solutions in SharePoint 2010 ?
We can add solution via common line using either STSADM or PowerShell command while solution deployment can be done either via Central Admin or using STSADM or PowerShell

Uninstallation and Retraction of a Solution in SharePoint 2010

Uninstallation and Retraction of a Solution in SharePoint 2010

Using STSADM:
stsadm -o retractsolution -name solutionName.wsp -immediate
stsadm -o deletesolution -name solutionName.wsp

Using PowerShell:
Uninstall-SPSolution -identity solutionName.wsp
Remove-SPSolution -identity solutionName.wsp

Tuesday, November 6, 2012

Programmatically create a host-named site collection

In addition to using the Windows PowerShell to create host-named sites, you can use the SharePoint Server 2010 object model. The following code sample creates the host-named site collection with the URL http://host.header.site.url in the SharePoint Server 2010 Web application with the URL http://servername:

Tuesday, July 31, 2012

Top 5 Free PowerShell Scripts for SharePoint‏



Top 5 Free PowerShell Scripts for SQL Server
Windows PowerShell provides an easy way to create SharePoint sites, manage services, update configuration and more. Get started with our package of over 20 free PowerShell scripts for SharePoint. Our free scripts pack includes these 5 popular scripts, plus many more -
  • IMPORT-SPSITE - Imports a site from a backup file
  • ADD-SPUSER - Adds a new user to a group in SharePoint
  • REMOVE-SPSITE - Removes a site from the site collection
  • SET-SPITEM - Modifies a list item
  • DISPLAY-SPLIST - Displays all lists
Download free tool now!
Get fast, easy and reliable backups with SharePoint backup
SharePoint backup provides fast, full-farm backup and restore, powerful search capabilities and easy item-level recovery, plus tools to schedule, manage and monitor backups farm-wide.
SharePoint backup 
Download now to get fast, easy, and reliable backups with these features:
Lightning-Fast Backups
Full-Farm Protection
Real-Time Status Alerts
Self-Service Document Recovery
Download a free trial now!

Saturday, June 9, 2012

How to restore content database using PowerShell in SharePoint 2010 ?



  1. Open SharePoint 2010 Management Shell.
  2. At the Windows PowerShell command prompt (that is, PS C:\>), type the following command, and then press ENTER:

Restore-SPFarm -Directory <Backup folder name> -RestoreMethod Overwrite -Item <Content database name> [-BackupId <GUID>] [-Verbose]

3.      If you do not use the BackupId parameter, the most recent backup will be used. To view a list of the backups, including their Backup IDs, type the following command, and then press ENTER:

Get-SPBackupHistory -Directory <Backup folder>

Popular Posts

Disclaimer

The opinions expressed on this blog are the personal views of Pratik's SharePoint Blog, and do not represent or reflect the viewpoints or policies of any past, present, or future employer, colleague, or customer, or any other entity. The posts on this blog are provided ‘as is’ with no warranties, express or implied, and confer no rights. Use of information contained within this blog, including specific technical steps mentioned herein, is at your own risk. References to specific software products, processes, resources, or companies do not imply any endorsement.