Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Update-SPInfoPathUrl

Published: July 16, 2012

Applies to:  SharePoint Server 2013 Enterprise 

Runs a InfoPath 2013 .xsn/.udc fix-up on SharePoint Foundation 2013.

Update-SPInfoPathUrl -WebApplication <SPWebApplicationPipeBind> -Find <Uri> -Replace <Uri> [-AssignmentCollection <SPAssignmentCollection>] [-CentralAdministrationFiles <SwitchParameter>] [-Confirm [<SwitchParameter>]] [-PrepForGradualUpgrade <SwitchParameter>] [-Scan <SwitchParameter>] [-WhatIf [<SwitchParameter>]]
Update-SPInfoPathUrl -ContentDatabase <SPContentDatabase> -Find <Uri> -Replace <Uri> [-AssignmentCollection <SPAssignmentCollection>] [-CentralAdministrationFiles <SwitchParameter>] [-Confirm [<SwitchParameter>]] [-PrepForGradualUpgrade <SwitchParameter>] [-Scan <SwitchParameter>] [-WhatIf [<SwitchParameter>]]
Update-SPInfoPathUrl -Site <SPSitePipeBind> -Find <Uri> -Replace <Uri> [-AssignmentCollection <SPAssignmentCollection>] [-CentralAdministrationFiles <SwitchParameter>] [-Confirm [<SwitchParameter>]] [-PrepForGradualUpgrade <SwitchParameter>] [-Scan <SwitchParameter>] [-WhatIf [<SwitchParameter>]]
Update-SPInfoPathUrl -File <Uri> -Find <Uri> -Replace <Uri> [-AssignmentCollection <SPAssignmentCollection>] [-CentralAdministrationFiles <SwitchParameter>] [-Confirm [<SwitchParameter>]] [-PrepForGradualUpgrade <SwitchParameter>] [-Scan <SwitchParameter>] [-WhatIf [<SwitchParameter>]]

Parameters

1

Parameter

Required

Type

Description

WebApplication

Required

Microsoft.SharePoint.PowerShell.SPWebApplicationPipeBind

Specifies the parent SharePoint Web application where the update will start.

The type must be a valid URL, in the form http://server_name; a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a SharePoint Web application (for example, MyOfficeApp1); or an instance of a valid SPWebApplication object.

Find

Required

System.Uri

Specifies the URL to find.

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

Replace

Required

System.Uri

Specifies the URL to replace.

The type must be a valid URL, in the form http://server_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.

noteNote:

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.

CentralAdministrationFiles

Optional

System.Management.Automation.SwitchParameter

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

PrepForGradualUpgrade

Optional

System.Management.Automation.SwitchParameter

Specifies that the gradualUpgradeURL.xml file is inserted into the form template and SPFile persisted properties are added.

Scan

Optional

System.Management.Automation.SwitchParameter

Specifies that functionality is scanned.

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

2

Parameter

Required

Type

Description

ContentDatabase

Required

Microsoft.SharePoint.Administration.SPContentDatabase

Specifies the parent content database where the update will start.

The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a content database (for example, SPContent DB1); or an instance of a valid SPContentDatabase object.

Find

Required

System.Uri

Specifies the URL to find.

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

Replace

Required

System.Uri

Specifies the URL to replace.

The type must be a valid URL, in the form http://server_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.

noteNote:

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.

CentralAdministrationFiles

Optional

System.Management.Automation.SwitchParameter

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

PrepForGradualUpgrade

Optional

System.Management.Automation.SwitchParameter

Specifies that the gradualUpgradeURL.xml file is inserted into the form template and SPFile persisted properties are added.

Scan

Optional

System.Management.Automation.SwitchParameter

Specifies that functionality is scanned.

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

3

Parameter

Required

Type

Description

Site

Required

Microsoft.SharePoint.PowerShell.SPSitePipeBind

Specifies the parent site collection where the update will start.

The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid URL, in the form http://server_name; or an instance of a valid SPSite object.

Find

Required

System.Uri

Specifies the URL to find.

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

Replace

Required

System.Uri

Specifies the URL to replace.

The type must be a valid URL, in the form http://server_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.

noteNote:

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.

CentralAdministrationFiles

Optional

System.Management.Automation.SwitchParameter

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

PrepForGradualUpgrade

Optional

System.Management.Automation.SwitchParameter

Specifies that the gradualUpgradeURL.xml file is inserted into the form template and SPFile persisted properties are added.

Scan

Optional

System.Management.Automation.SwitchParameter

Specifies that functionality is scanned.

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

4

Parameter

Required

Type

Description

File

Required

System.Uri

Specifies the parent file on a SharePoint Web site where the update will start.

Find

Required

System.Uri

Specifies the URL to find.

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

Replace

Required

System.Uri

Specifies the URL to replace.

The type must be a valid URL, in the form http://server_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.

noteNote:

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.

CentralAdministrationFiles

Optional

System.Management.Automation.SwitchParameter

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

PrepForGradualUpgrade

Optional

System.Management.Automation.SwitchParameter

Specifies that the gradualUpgradeURL.xml file is inserted into the form template and SPFile persisted properties are added.

Scan

Optional

System.Management.Automation.SwitchParameter

Specifies that functionality is scanned.

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

Detailed Description

The Update-SPInfoPathUrls cmdlet updates form templates (.xsn files) and universal data connections (.udcx files) that are located on the SharePoint Central Administration Web site.

This cmdlet supports parameter sets for Web application, Content Database, Site, and File.

Input Types

Return Types

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

Update-SPInfoPathUrl -Site "http://server_name" -Find "http://findUrl" -Replace "http://ReplaceUrl"

This example updates connection settings.

Change History

Date Description

July 16, 2012

Initial publication

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.