We usually use Visual Studio 2010 to quickly develop and deploy our SharePoint solution. but sometimes we have to deploy the solution packages we developed to other physical locations (production machines), rather than the servers (Test Machines) that our development environment directs ). Previously we used stsadm to do this, but now we recommend using powershell.The following describes the basic steps involved in this job:1. Add solution to
How to Use PowerShell to create a SharePoint websiteUsing PowerShell to create a SharePoint site in SharePoint development, you should learn to use PowerShell to manage SharePoint sites
Symptom
Visual Studio is very slow to open and debug the site page for the first time after the deployment package is released during SharePoint development.
?
Solution
Use powershell scripts to load the SharePoint plug-in and traverse all website sets to simulate users' automatic page clicking.
?
Procedure
Create powershel
To create a SharePoint site using PowerShell in SharePoint development, you should learn to manage SharePoint sites using PowerShell. The SharePoint Management Shell is a Windows PowerShell
Many new powershellProgramStaff may be in the trouble of not referencing SharePoint powershell snap-in. BelowCodeLists how to avoid such problems.
$ Snapin = Get-pssnapin | Where - Object {$ _. Name- EQ ' Microsoft. Sharepoint. powershell ' } If ($ Snapin-EQ $ Null ) {Write -Host " Loading
Microsoft SharePoint in the enterprise is increasingly popular, which is in stark contrast to the boredom and dislike of many administrators. One reason for anger is that SharePoint stores all relevant data in multiple different places, which makes it tricky to execute SharePoint-specific backup. It is not impossible to back up each independent part, but it is re
. Sharepoint. Administration. spwebservice]: contentservice. applicationpoolsPS c: \ Users \ administrator. VSAT> $ pool3 = $ pools | where {$ _. Name-EQ "SharePoint hosting pool "}
Note: The app pool used by Sharepoint Services does not display the name in IIS, And the guid corresponding to it is displayed.
The following command can help you map the ID a
These months have been to help customers change demand, deployment. I have been exhausted, after a period of groping, I have some experience with PowerShell automation deployment, such as the use of PowerShell export to import the user in the ad. In the development of SharePoint platform, the use of ad for personnel management, will generally build organizational
Uninstall all SharePoint 2010 solutions through PowerShell in order to demonstrate. I often need to demolish and rebuild the SharePoint 2010 environment. What I often need to do is remove all of the SharePoint solutions installed in the demo development environment. Here is the
A previous article, "Two diagrams to see the SharePoint 2013 Farm logical architecture," talked about the relationship between Web Application,content database,site collection. With this logical structure diagram, this article will use PowerShell to more visually demonstrate the architecture of the SharePoint WebApplication.
Create a SharePoint Site Collection from PowerShell with the following code:add-PSSnapin microsoft.sharepoint.powershellfunction createteamsite () {$webApps= get-spwebapplication $webAppsUrl=$webApps. Urlif($webApps. Count-eq1) {Write-host"You have the only one Web application:"Write-Host $webApps. Url $choice= Read-host"does want to create a site collection under this Web application? Type ' y ' to create.
1. Download the SharePoint Online Client components SDK here in https://www.microsoft.com/en-us/download/details.aspx?id=42038 and install it.2. Download the SharePoint management module written by the foreign God https://gallery.technet.microsoft.com/office/SharePoint-Module-for-5ecbbcf0 here, unzip it and put it in C : \windows\system32\windowspowershell\v1.0\m
Enable-SPFeature -Identity DocumentSet -URLhttp://url
Installing and uninstalling featuresonce again this is pretty straight forward and is really made up of only two cmdlets:
Install-spfeatureAnd
Uninstall-spfeatureTo install a feature you need to specify the name of the folder that your feature contains:
1
Install-SPFeature "FeatureFolderName"
To uninstall simply use the sameUninstall-featureCommand with the same parameters:
1
UnInstall-SPFeature "Feature
(Author: Lightning. Please indicate the source for reprinting)
When I used powershell to create a website set, I encountered a problem that I needed to obtain the default database server of SharePoint. After searching for a long time, I finally found a solution.
Function getdefadatabdatabaseserver (){[Void] [system. reflection. Assembly]: loadwithpartialname ("Microsoft.
Open the SharePoint Management Shell, and then run as Administrator. Execute the following command1. Adding WSP and InstallationAdd-spsolution-literalpath "C:\DEPLOYRESOURCE\WSP\TEST.WSP"Install-spsolution-identity "test.wsp"-webapplication "http://domain:port/"-gacdeployment-forceRemove-webapplication "http://domain:port/" if it is a resource-free installation2. Update wsp: update-spsolution-identity splistupdatead.wsp-literalpath "D:\BackupOfBackup\
Tags: deployment process approval Project Management 51cto BDD disable simple AltThe previous successful deployment of the students should have no problem in the process.Then we design the separation process ~~ ~First of all, to understand clearly what to do? Disable AD, disable mailbox or have other personnel process to go, here to my process simple painting, please refer to as appropriate, we are first disabled and then deleted after 30 daysIt's easy to understand what we're going to do when w
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.