Export (0) Print
Expand All
Expand Minimize

Remove-Tier

Remove-Tier

Removes a tier.

Syntax

Parameter Set: Empty
Remove-Tier [-Tier] <TieredManagementGroup> [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

Removes a tier.

Parameters

-Tier<TieredManagementGroup>

Specifies the tier to remove. You can use Get-Tier to retrieve an object to use as the value of this parameter.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before executing the command.


Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Describes what would happen if you executed the command without actually executing the command.


Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters

Notes

  • For more information, type "Get-Help Remove-Tier -detailed". For technical information, type "Get-Help Remove-Tier -full".
    When specifying multiple values for a parameter, use commas to separate the values. For example, "<parameter-name> <value1>, <value2>".

Examples

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

This command uses Get-Tier in conjunction with Where-Object to retrieve a tier that has mytier in its name. It stores the tier in the $tier variable. The $tier variable is then passed along the pipeline to Remove-Tier, which removes the tier.


C:\PS>$tier = get-tier | where-object {$_.name -match "mytier"}$tier | remove-tier

Related topics

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