Export (0) Print
Expand All

Disable-ServerManagerStandardUserRemoting

Updated: October 7, 2013

Applies To: Windows Server 2012

Disable-ServerManagerStandardUserRemoting

Disables access for specified standard users to event, service, performance counter, and role and feature inventory data that is collected by Server Manager for a server. This cmdlet performs the opposite action, for specified users, of the Enable-ServerManagerStandardUserRemoting cmdlet.

Syntax

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




Detailed Description

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 Server Manager. 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 Server Manager. 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.

Parameters

-Force

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-User<String[]>

Specifies the user account name of a standard user who runs Server Manager, 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 Server Manager console.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.


Required?

false

Position?

named

Default Value

false

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.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

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 Server Manager 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

Related topics

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