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

Friday, March 20, 2015

Restore of deleted site collection by power shell



Restore of deleted site collection by power shell

This happens many times with the SharePoint administrators that someone deletes the site unfortunately and want it back. What happens if it’s also delete from the recycle bin.

We can still restore the deleted site by using the power shell commands.

Initially get all the sites that were deleted, this provides the sites deleted list with the Site ID

Get-spdeletedsite | select path,siteID

Once you get the details, Restore the site with the below command.

Restore-spdeletedsite –identity siteID(which we got in last command)
 


I hope the above information will help you to resolve the issue, in case of any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues, Thank you.

Thursday, March 19, 2015

Windows Power Shell for SharePoint 2013



Windows Power Shell for SharePoint 2013

I found a very good article from MS, which provides and contains all power shell commands that every administrator use in their daily work.

 
IIS:https://technet.microsoft.com/en-us/library/ee790599.aspx

I hope the above information will help you to resolve the issue, in case of any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues, Thank you.

Friday, February 6, 2015

Create SharePoint 2013 Claims Web Application With Power Shell



Create SharePoint 2013 Claims Web Application With Power Shell

This script will create claims-based web applications in SharePoint 2013.  This script may also work in SharePoint 2010.  This script will also set your object cache user accounts, as well as configuring your object cache accounts for your web applications

https://gallery.technet.microsoft.com/office/Create-SharePoint-2013-1d7c3337/view/Discussions#content

I hope the above information will help you to resolve the issue, in case of any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues, Thank you.

Tuesday, December 30, 2014

meaning of status value returned by SharePoint power shell command

 meaning of status value returned by SharePoint power shell command



1.      Get-SPServiceApplication
2.      Get-SPServiceApplicationProxy
3.      Get-SPServiceInstance
4.      Get-SPSolution
5.      Get-SPDatabase
6.      Get-SPWebApplication
7.      Get-SPServer 

All above command results Status code as Online  - what it means exactly




Online
Specifies that the service is provisioned and running as expected. New sites can be created in content databases up to their maximum site collection limits. This value corresponds to the Ready value that can be selected through the Database status box on the Manage Content Database Settings page in SharePoint Central Administration.

Disabled
Specifies that the components that are necessary to run the service are installed on the computer, but an administrator needs to provision the service and put it online. New sites cannot be created in content databases, even though the databases have not reached their maximum site collection limits. This value corresponds to the Offline value that can be selected through the Database status box on the Manage Content Database Settings page in SharePoint Central Administration.

Offline
Specifies that the component is offline for some unknown reason. New sites cannot be created in content databases, but old sites can be accessed. 

Unprovisioning     
Specifies that the administrator has issued the command to unprovision the service and leave it in a disabled state, but the unprovisioning job has not completed yet.

Provisioning
Specifies that the administrator has issued the command to provision the service and put it online, but the provisioning job has not completed yet.

Upgrading
Specifies that the administrator has issued the command to upgrade the service and put it online, but the upgrade job has not completed yet.
 

I hope the above information will help you to resolve the issue, in case of any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues, Thank you.

ShareThis

X