Export (0) Print
Expand All
Expand Minimize

New-SPWebApplicationAppDomain

SharePoint 2013

Published: March 26, 2013

Applies to:  SharePoint Server 2013 | SharePoint Foundation 2013 

Creates an AppDomain entry.

New-SPWebApplicationAppDomain [-AppDomain] <String> -WebApplication <SPWebApplicationPipeBind> [-AssignmentCollection <SPAssignmentCollection>] [-Confirm [<SwitchParameter>]] [-Port <Int32>] [-SecureSocketsLayer <SwitchParameter>] [-WhatIf [<SwitchParameter>]] [-Zone <Default | Intranet | Internet | Custom | Extranet>]

Parameters

Parameter Required Type Description

AppDomain

Required

System.String

Specifies the URI of the app domain.

WebApplication

Required

Microsoft.SharePoint.PowerShell.SPWebApplicationPipeBind

Specifies the GUID, URI, or name of the web application for which the app domain is being configured.

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 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.

Confirm

Optional

System.Management.Automation.SwitchParameter

Prompts you for confirmation before executing the command. For more information, type the following command: get-help about_commonparameters

Port

Optional

System.Int32

Specifies the IIS port number to which the app domain will be assigned. If no value is specified, the same port used by the web application for the zone is applied.

SecureSocketsLayer

Optional

System.Management.Automation.SwitchParameter

Specifies that the app domain will use Secured Sockets Layer (SSL) security. If no value is specified, no SSL security will be used.

WhatIf

Optional

System.Management.Automation.SwitchParameter

Displays a message that describes the effect of the command instead of executing the command. For more information, type the following command: get-help about_commonparameters

Zone

Optional

Microsoft.SharePoint.Administration.SPUrlZone

Specifies the security zone to which the app domain will be assigned.

  • Default

  • Intranet

  • Internet

  • Extranet

  • Custom

If no value is specified, Default is applied.

Detailed Description

note Note:

The New-SPWebApplicationAppDoman cmdlet was first introduced in the March 2013 Public Update. For additional information about updates, see Updates for SharePoint 2013 Resource Center

Use the New-SPWebApplicationAppDomain cmdlet to create an AppDomain entry. If you specify a port, the cmdlet adds a port binding to the Internet Information Services (IIS) site corresponding to the webapp/ zone combination.

Input Types

Return Types

----------EXAMPLE 1------------

New-SPWebApplicationAppDomain –AppDomain contosoapps.com –WebApplication http://www.contoso.com

Creates a new app domain for apps for SharePoint for the specified web application in the default zone.

----------EXAMPLE 2------------

New-SPWebApplicationAppDomain –AppDomain contosoapps.com –WebApplication http://www.contoso.com –Zone Internet –Port 10000

Creates a new app domain for apps for SharePoint for the specified web application in the internet zone at port 10000.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft