Skip to content

Latest commit

 

History

History
145 lines (104 loc) · 3.16 KB

File metadata and controls

145 lines (104 loc) · 3.16 KB
description external help file Module Name ms.date online version schema title
Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell.
Microsoft.FailoverClusters.PowerShell.dll-Help.xml
FailoverClusters
11/22/2022
2.0.0
Block-ClusterAccess

Block-ClusterAccess

SYNOPSIS

Prevents the specified user or users from accessing a failover cluster.

SYNTAX

Block-ClusterAccess [-User] <StringCollection> [-InputObject <PSObject>] [-Cluster <String>]
 [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

The Block-ClusterAccess cmdlet prevents the specified user or users from accessing a failover cluster. If you don't want to completely block access and instead want to limit a user to using Windows PowerShell to view cluster settings (not change settings), then use the Grant-ClusterAccess cmdlet with the Readonly parameter.

EXAMPLES

Example 1

Block-ClusterAccess -User contoso\johnj99

This example prevents the user named johnj99 on the contoso domain from gaining access to the local cluster.

PARAMETERS

-Cluster

Specifies the name of the cluster on which to run this cmdlet. If the input for this parameter is . or it is omitted, then the cmdlet runs on the local cluster.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-InputObject

Specifies the cluster on which to block access for the given user.

Type: PSObject
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-User

Specifies the user for whom to block cluster access.

Type: StringCollection
Parameter Sets: (All)
Aliases: 

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet isn't run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

Microsoft.FailoverClusters.PowerShell.Cluster

OUTPUTS

NOTES

RELATED LINKS

Get-ClusterAccess

Grant-ClusterAccess

Remove-ClusterAccess