Set-SPODataConnectionSetting

Establece o actualiza las propiedades globales de una conexión de Servicios de conectividad empresarial de Microsoft.

Syntax

Set-SPODataConnectionSetting
   [-Identity] <ODataConnectionSettings>
   -ServiceContext <SPServiceContextPipeBind>
   [-AssignmentCollection <SPAssignmentCollection>]
   [-AuthenticationMode <ODataAuthenticationMode>]
   [-Confirm]
   [-ExtensionProvider <String>]
   [-SecureStoreTargetApplicationId <String>]
   [-ServiceAddressURL <Uri>]
   [-WhatIf]
   [<CommonParameters>]
Set-SPODataConnectionSetting
   -ServiceContext <SPServiceContextPipeBind>
   -Name <String>
   [-AssignmentCollection <SPAssignmentCollection>]
   [-AuthenticationMode <ODataAuthenticationMode>]
   [-Confirm]
   [-ExtensionProvider <String>]
   [-SecureStoreTargetApplicationId <String>]
   [-ServiceAddressURL <Uri>]
   [-WhatIf]
   [<CommonParameters>]

Description

This cmdlet contains more than one parameter set. You may only use parameters from one parameter set and you may not combine parameters from different parameter sets. For more information about how to use parameter sets, see Cmdlet parameter sets.

Use el cmdlet Set-SPODataConnectionSetting para actualizar las propiedades de una conexión existente para una aplicación de Servicios de conectividad empresarial específica.

This cmdlet applies to an on-premises environment only. You cannot use this command in the SharePoint Online Management Shell.

Para obtener los permisos y la información más actualizada acerca de Windows PowerShell para los Productos y Tecnologías de SharePoint, consulte la documentación en línea en https://go.microsoft.com/fwlink/p/?LinkId=251831 (https://go.microsoft.com/fwlink/p/?LinkId=251831).

Ejemplos

-------------EJEMPLO 1-----------

Set-SPODataConnectionSetting -Name "ContosoServiceApp" -ServiceContext "http://contoso" -AuthenticationMode "PassThrough"

Este ejemplo actualiza las propiedades de la conexión de Servicios de conectividad empresarial llamada ContosoServiceApp.

-------------EJEMPLO 2-----------

$ConnectionVariable = Get-SPODataConnectionSetting -ServiceContext http://contoso -Name "ContosoServiceApp"

Set-SPODataConnectionSetting -Identity $ConnectionVariable -AuthenticationMode "PassThrough"

Este ejemplo actualiza las propiedades de la conexión ContosoServiceApp del servicio Servicios de conectividad empresarial.

-------------EJEMPLO 3-----------

Set-SPODataConnectionSetting -Name "ContosoServiceApp" -ServiceContext "http://contoso" -AuthenticationMode "PassThrough" -ExtensionProvider ""

En este ejemplo se actualizan las propiedades de la conexión ContosoServiceApp de Servicios de conectividad empresarial. Se ha cambiado el modo de autenticación y se ha borrado el valor del proveedor de extensiones.

Parámetros

- AssignmentCollection

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.

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.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

- AuthenticationMode

Especifica el tipo de modo de autenticación necesario para la conexión de Servicios de conectividad empresarial.

El valor del modo de autenticación puede ser cualquiera de las siguientes opciones:

--PassThrough --RevertToSelf --Credentials --WindowsCredentials --DigestCredentials --ClientCertificate --Anonymous

Type:ODataAuthenticationMode
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

- ExtensionProvider

Especifica el ODataExtensionProvider para la conexión de Servicios de conectividad empresarial.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

- Name

Especifica el nombre de la conexión de Servicios de conectividad empresarial existente.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

- SecureStoreTargetApplicationId

Specifies the Secure Store Target Application ID. Works in conjunction with the AuthenticationMode parameter.

Puede establecer el valor para el parámetro SecureStoreTargetApplicationId con una de las siguientes opciones:

--Credentials --WindowsCredentials --DigestCredentials --ClientCertificate

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

- ServiceAddressURL

Specifies the URL for the OData service. The URL does not have to be Internet facing. This is the final destination from which data is retrieved.

Type:Uri
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

- ServiceContext

Especifica el contexto de servicio determinado en el formulario de una instancia correspondiente a un objeto SPServiceContext, a un identificador de objeto SPSiteAdministration o a un objeto SPSite. Algunos valores de ejemplo de un contexto de servicio podrían ser un identificador del campo Id., un identificador de cadenas, un URI o la representación de cadena de un GUID.

Type:SPServiceContextPipeBind
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-Confirm

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

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-Identity

Especifica el objeto de configuración de conexión OData.

Type:ODataConnectionSettings
Position:1
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016