使用添加了应用程序池和帐户以及PowerShell ShrePoint 2016的PowerShell创建Web应用程序 [英] Create Web Application using PowerShell that adds the Application Pool and account and Database ShrePoint 2016
问题描述
需要使用Powershell为SharePoint 2016创建一个Web应用程序,该应用程序将应用程序池和应用程序池帐户以及数据库添加到Web应用程序中.
Need to create a web application using powershell for SharePoint 2016 that adds the Application pool and application pool account and database to the web app
推荐答案
C :\ PS> New-SPWebApplication-名称"Contoso Internet Site" -端口80 -HostHeader sharepoint.contoso.com -URL"https://www.contoso.com"; -ApplicationPool"ContosoAppPool"; -ApplicationPoolAccount(Get-SPManagedAccount"DOMAIN \ jdoe")
C:\PS>New-SPWebApplication -Name "Contoso Internet Site" -Port 80 -HostHeader sharepoint.contoso.com -URL "https://www.contoso.com" -ApplicationPool "ContosoAppPool" -ApplicationPoolAccount (Get-SPManagedAccount "DOMAIN\jdoe")
尝试以下链接:https://docs.microsoft.com/zh-cn/powershell/module/sharepoint-server/new-spwebapplication?view = sharepoint-ps
Try this link: https://docs.microsoft.com/en-us/powershell/module/sharepoint-server/new-spwebapplication?view=sharepoint-ps
这篇关于使用添加了应用程序池和帐户以及PowerShell ShrePoint 2016的PowerShell创建Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!