Showing posts with label powershell. Show all posts
Showing posts with label powershell. Show all posts

create site + delete site - SharePoint 2013


Site collection is a very important part by which you actually started building the whole house. Creation of list, libraries, record center, management, usage analysis, reports & so many things- bottom line is you need a site collection. When you create a site collection then its requirement proper management also which involves permissions part (not going to discuss in this article but FYI) so let’s start!

In this article, we will concentrate on site collection guidelines:
·         Site creation by GUI as well as by PowerShell
·         Site Deletion by GUI as well as by PowerShell

Site collection will already be created underneath the web application and there can be so many site collections present in a single web app. So site collections can be created by two ways-
1)       GUI i.e. Central Administration
2)       Command prompt i.e. PowerShell

Let’s try to understand step by step each section in detail-

Create site collection by using – Central Administration
1)       SharePoint 2013 Central Administration
2)       Application management
3)       Create site collections
4)       Select the appropriate web application from the top dropdown underneath you want to create the site collection
5)       Provide title, description ,URL and template selection as per your requirements
6)       Provide the names for primary and secondary site admins as per your requirements
7)       Apply appropriate quota
8)       Click OK
9)       Site collection will be created.
10)   That’s it- you are done!

Create site collection by using – PowerShell
New-SPSite -Url "<URL for the new site collection>" -OwnerAlias "<domain\user>" -Template $template

As we have understood the creation part, let’s try to understand the site deletion part by using the same ways-
1.       Site deletion by Central Administration.
2.       Site deletion by PowerShell.

Site Deletion by using – Central Administration
1.       SharePoint 2013 Central Administration
2.       Application management
3.       Delete site collections
4.       Select the appropriate web application from the top dropdown underneath you want to delete the site collection
5.       Select the appropriate site collection
6.       Click OK
7.       Read the warning
8.       On the delete site page
9.       Click on Delete

Site deletion by using PowerShell
Remove-SPSite -Identity "<URL>" –GradualDelete

Where-
·         URL stands- URL of the site collection
·         Gradualdelete-reduces the load on the system.

If you have 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.

Popular Posts