Share via


New-SPProjectWebInstance

 

Applies to: SharePoint Server 2010, Project Server 2010

Topic Last Modified: 2011-07-11

Creates a new instance of a Microsoft Project Web App (PWA) site.

Syntax

New-SPProjectWebInstance -AdminAccount <String> -ArchiveDbname <String> -DraftDbname <String> -PrimaryDbserver <String> -PublishedDbname <String> -ReportingDbname <String> -ReportingDbserver <String> -Url <String> [-AssignmentCollection <SPAssignmentCollection>] [-HostHeaderWebapplicationUrl <String>] [-Lcid <Int32>] [-PrimaryDBMirrorServer <String>] [-ReportingDBMirrorServer <String>] [-Wait <SwitchParameter>]

Detailed Description

The New-SPProjectWebInstance cmdlet creates a new instance of a Project Web App site.

Parameters

Parameter Required Type Description

AdminAccount

Required

System.String

Specifies the administrator account to use for creating and running the Project Web App site.

The type must be a valid name of an administrator account; for example, MyAdminAcct1.

ArchiveDbname

Required

System.String

Specifies the name of the archive database that this instance of Project Web App will use.

The type must be a valid name of a SQL Server database; for example, PWA_Archive.

DraftDbname

Required

System.String

Specifies the name of the draft database that this instance of Project Web App will use.

The type must be a valid name of a SQL Server database; for example, PWA_Draft.

PrimaryDbserver

Required

System.String

Specifies the host server for the Draft, Archive, and Published databases.

The type must be a valid instance of SQL Server.

PublishedDbname

Required

System.String

Specifies the name of the published database that this instance of Project Web App will use.

The type must be a valid name of a SQL Server database; for example, PWA_Published.

ReportingDbname

Required

System.String

Specifies the name of the reporting database that this instance of Project Web App will use.

The type must be a valid name of a SQL Server database; for example, PWA_Reporting.

ReportingDbserver

Required

System.String

Specifies the host server for the reporting database.

The type must be a valid instance of SQL Server.

Url

Required

System.String

Specifies the URL of the new PWA instance.

The type must be a valid URL, in the form http://server_name/instance_name.

AssignmentCollection

Optional

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

Note

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

HostHeaderWebapplicationUrl

Optional

System.String

Specifies the URL of the Web application to use for the host header site.

The type must be a valid URL, in the form http://server_name.

Lcid

Optional

System.Int32

Specifies the locale ID of the new PWA instance. The ID is set to the server locale ID if this parameter is set to 0 or not specified.

The type must be a valid Locale ID (LCID).

Wait

Optional

System.Management.Automation.SwitchParameter

Specifies the creation of the PWA instance synchronously; that is, waits for the creation of the job to complete before returning.

Input Types

Return Types

Example

--------------EXAMPLE--------------

New-SPProjectWebInstance -Url "https://SERVER/pwa" -AdminAccount "CONTOSO\FarmAdmin" -PrimaryDbserver "SQLSERVER1" -PublishedDbname "ProjectServer_Published" -ArchiveDbname "ProjectServer_Archive" -DraftDbname "ProjectServer_Draft" -ReportingDbserver "SQLSERVER2" -ReportingDbname "ProjectServer_Reporting"

This example creates a PWA instance with specified parameters.