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 Administrador de servidores for a server. This cmdlet performs the opposite action, for specified users, of the Enable-ServerManagerStandardUserRemoting cmdlet.
Sintaxis
Parameter Set: Default
Disable-ServerManagerStandardUserRemoting [-User] <String[]> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]
Descripción detallada
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 Administrador de servidores. 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 Administrador de servidores. 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.
Parámetros
-Force
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-User<String[]>
Specifies the user account name of a standard user who runs Administrador de servidores, 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 Administrador de servidores console.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-Confirm
Solicita confirmación antes de ejecutar el cmdlet.
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
falso |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-WhatIf
Muestra lo que sucedería si se ejecutara el cmdlet. El cmdlet no se ejecuta.
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
falso |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
Ejemplos
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 Administrador de servidores 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