Remove-SPManagedPath

Exclui o caminho gerenciado especificado do cabeçalho de host especificado ou aplicativo da Web.

Syntax

Remove-SPManagedPath
      [-Identity] <SPPrefixPipeBind>
      [-HostHeader]
      [-AssignmentCollection <SPAssignmentCollection>]
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]
Remove-SPManagedPath
      [-Identity] <SPPrefixPipeBind>
      -WebApplication <SPWebApplicationPipeBind>
      [-AssignmentCollection <SPAssignmentCollection>]
      [-Confirm]
      [-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.

O Remove-SPManagedPath cmdlet exclui o caminho gerenciado especificado pelo parâmetro Identity do cabeçalho do host ou do aplicativo Web. Identity deve ser a URL parcial do caminho gerenciado a ser excluído.

Se você estiver usando conjuntos de sites nomeados pelo host, especifique o parâmetro HostHeader. Para excluir um caminho gerenciado do conjunto de sites nomeado pelo host, forneça a opção HostHeader. Caso contrário, será preciso especificar o aplicativo Web que contém o caminho gerenciado a ser excluído.

Para obter as permissões e informações mais recentes sobre o Windows PowerShell para Produtos SharePoint, confira a documentação online em Cmdlets do SharePoint Server.

Exemplos

----------------------EXEMPLO 1----------------------------

Remove-SPManagedPath "sites" -HostHeader

Este exemplo remove o caminho gerenciado de sites da lista de caminhos gerenciados do conjunto de sites nomeado pelo host.

Dependendo do nível de confirmação do sistema local, o exemplo anterior poderá solicitar antes da execução.

------------------EXEMPLO 2-----------------------

Get-SPWebApplication | Remove-SPManagedPath "personal" -confirm:$false

Este exemplo remove o caminho gerenciado personal de todos os aplicativos Web no farm. Este comando não solicita confirmação.

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 Subscription Edition

-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 Subscription Edition

-HostHeader

Especifica que Identity é um caminho gerenciado de cabeçalho de host.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Identidade

Specifies the name of the managed path to delete. For example, in the URL https://sitename/sites/site1, "sites" is the name of the managed path.

Type:SPPrefixPipeBind
Position:1
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-WebApplication

Specifies the identity of the Web application that hosts the managed path to delete. The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid Web application name (for example, WebApplication1212); or a valid name, in the form WebApp2423.

Type:SPWebApplicationPipeBind
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-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 Subscription Edition