Quantcast
Channel: AutoSPInstaller
Viewing all articles
Browse latest Browse all 2279

Created Unassigned: Create Project Server Web Instance on Custom Web Application [22096]

$
0
0
We are no using the "Portal" web application to host Project server instances.

The script defaults to creating the project server web instances on the web application using the "Portal" type.

I modified the Config XML file and Installerfunction powershell file as follows to achieve this:

Config.XML - added two new keys: WebAPP and WebAppPort

```
<ProjectServer Install="true" ConfigFile="config-ProjectServer2013.xml" PIDKeyProjectServer="TBD">
<ServiceApp Provision="ServerName" Name="Project Server Service Application" ProxyName="Project Server Service Application" ManagedPath="PWA" ServiceAccount="Domain\account" ServiceAccountPassword="TBD
WebApp="https://foo.com" WebAppPort="" >
```

Modified the InstallerFucntion file

```
# Create a Project Server Web Instance around line 5803
$projectManagedPath = $xmlinput.Configuration.ProjectServer.ServiceApp.ManagedPath
$projectWebApp = $xmlinput.Configuration.ProjectServer.ServiceApp.WebApp #this is news
$projectWebAppPort = $xmlinput.Configuration.ProjectServer.ServiceApp.WebAppPort #this is new
New-SPManagedPath -RelativeURL $xmlinput.Configuration.ProjectServer.ServiceApp.ManagedPath -WebApplication $projectWebApp -Explicit:$true -ErrorAction SilentlyContinue | Out-Null #this is modified
Write-Host -ForegroundColor White " - Creating Project Server site collection at `"$projectManagedPath`"..." -NoNewline
$projectSiteUrl = $projectWebApp+":"+$projectWebAppPort+"/"+$projectManagedPath #this is modified
```

Viewing all articles
Browse latest Browse all 2279

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>