How to Use PowerShell to create a SharePoint website

Source: Internet
Author: User

How to Use PowerShell to create a SharePoint website
Using PowerShell to create a SharePoint site in SharePoint development, you should learn to use PowerShell to manage SharePoint sites. SharePoint Management Shell is a Windows PowerShell module that allows you to efficiently manage SharePoint users, sites, website sets, and organizations. Here we will teach you a simple statement to create a SharePoint website. Enter a statement. The information in the red box appears after you press Enter.
The website created is as follows:
First, we need to understand how to use PowerShell to create a site. The special new-spweb command has only one necessary element, namely the URL of the site. However, it also has many other parameters, which can enrich the site information when creating the site. -Url: the URL of the newly created site. -Template: Add a template number. -Name: displays the site name. -AddToTopNav: whether to display the site in the top navigation bar. -UseParentTopNav: whether to use the navigation of the parent site for the site. The Chinese Character website name is supported. For the ing between SharePoint 2010 site template names and IDs, see the http://blogs.msdn.com/ B /richin/archive/2011/07/04/sharepoint-2010-site-template-names.aspx if you're not sure which templates are available, you can use Get-SPWebTemplate to return a list of available templates.
Create a New Web application New-SPWebApplication-Name <name>-HostHeader ------------------------------------ Split line ---------------------------------------- New-SPWebApplication-Name "Company Intranet"-HostHeader "intranet.company.com"-Port 80-Url "http://intranet.company.com: 80 "-ApplicationPool" SharePoint Web Applications "-ApplicationPoolAccount (Get-SPManagedAccount" CompanySP_Service ")-DatabaseName" WSS_Content_Intranet"
Remove Web application Remove-SPWebApplication http://intranet.company.com-DeleteIISSite-RemoveContentDatabase-Confirm: $ false
Create a content database New-SPContentDatabase-Name <ContentDBName>-WebApplication <WebApplicationName>
------------------------------------ Split line ----------------------------------------
New-SPContentDatabase-Name WSS_Content_Intranet_Sales-WebApplication http://intranet.company.com
Create a website set "New-SPSite-URL" <URL for the new site collection> "-Name <name>-ContentDatabase <content database name>-OwnerAlias" <domainuser> "-Template <template>
------------------------------------ Split line ----------------------------------------
New-SPSite-URL "Sale-Name" Sales "-ContentDatabase WSS_Content_Intranet_Sales-OwnerAlias" COMPANYSPAdmin "-Template" STS #0 "is nothing New, you can also see it elsewhere. I would like to sum up here, just to reference them quickly when necessary.
How to Use sharepoint to edit and create a subwebsite in an existing website

The boss prompts sharepoint.
It is estimated that your company's website platform uses sharepoint.
Let's look at the books about sharepoint. You should not have to create a new one. Instead, you should create a sub-website in the existing one.
Sharepoint itself has the function of automatically creating sub-websites.

How to Use sharepoint designer2013 to create a sharepoint online website

Use sharepoint designer to directly connect to your website

Online has a free Domain name. You can connect to this domain name.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.