Disable-ServerManagerStandardUserRemoting

Disable-ServerManagerStandardUserRemoting

Disables access for specified standard users to event, service, performance counter, and role and feature inventory data that is collected by サーバー マネージャー for a server. This cmdlet performs the opposite action, for specified users, of the Enable-ServerManagerStandardUserRemoting cmdlet.

構文

Parameter Set: Default
Disable-ServerManagerStandardUserRemoting [-User] <String[]> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

Disables access for one or more standard, non-Administrator users to event, service, performance counter, and role and feature inventory data for a server that you are managing by using サーバー マネージャー. The cmdlet restores the default, administrator-only access to this data, and must be run locally on the server that is being managed by using サーバー マネージャー. The cmdlet works by performing the following actions:

 ● Deletes access rights for specified standard users to the root\cimv2 namespace on the local server (for access to role and feature inventory information).

 ● Removes specified standard users from user groups (Remote Management Users, Event Log Readers, and Performance Log Readers) that allow remote access to event and performance counter logs on the local server.

 ● Removes access rights in the Service Control Manager for specified standard users who have access to the status of services on the local server.

パラメーター

-Force

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-User<String[]>

Specifies the user account name of a standard user who runs サーバー マネージャー, and no longer requires access to event, performance counter, service, and role and feature inventory data for a server that is being managed by using either a local or remote サーバー マネージャー console.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1

In the following example, the administrator disables access to event, performance counter, service status, and role and feature inventory data for a server that is being managed by using either a local or remote サーバー マネージャー console, and for which there is a standard user named JennyL.

PS C:\> Disable-ServerManagerStandardUserRemoting -User JennyL

Example 2

In the following example, the administrator views the outcome of running a command to deny a standard user named JennyL access to event, performance counter, service status, and role and feature inventory data for a server that is being managed by using the Server Manager console running on either the local or a remote computer. The WhatIf parameter is added, meaning that the command actions are not carried out.

PS C:\> Disable-ServerManagerStandardUserRemoting –User JennyL -WhatIf

Example 3

In the following example, the administrator denies a standard user named JennyL access to event, performance counter, service status, and role and feature inventory data for a server that is being managed by using the Server Manager console running on either the local or a remote computer. The Confirm parameter is added, meaning that the command prompts for confirmation before performing the action.

PS C:\> Disable-ServerManagerStandardUserRemoting –User JennyL -Confirm

関連トピック

Get-WindowsFeature

Install-WindowsFeature

Uninstall-WindowsFeature

Enable-ServerManagerStandardUserRemoting