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.
Syntax
Default (Default)
Disable-ServerManagerStandardUserRemoting
[-User] <String[]>
[-Force]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Disable-ServerManagerStandardUserRemoting cmdlet 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. This cmdlet performs the opposite action, for specified users, of the Enable-ServerManagerStandardUserRemoting cmdlet.
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.
Examples
Example 1: Disable access to event, performance counter, service status and role and feature inventory data for a user
PS C:\> Disable-ServerManagerStandardUserRemoting -User "PattiFul"
This command 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 PattiFul.
Example 2: Simulate the outcome of disabling access to event, performance counter, service status and role and feature inventory data for a user
PS C:\> Disable-ServerManagerStandardUserRemoting -User "EvanNar" -WhatIf
This command views the outcome of running a command to deny a standard user named EvanNar 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. Because the WhatIf parameter is used, the command actions are not carried out.
Example 3: Disable access to event, performance counter, service status and role and feature inventory data for a user
PS C:\> Disable-ServerManagerStandardUserRemoting -User "PattiFul" -Confirm
This command denies a standard user named PattiFul 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. Because the Confirm parameter is used, the command prompts for confirmation before performing the action.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
| Type: | SwitchParameter |
| Default value: | False |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | cf |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Force
Forces the command to run without asking for user confirmation.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-User
Specifies an array of user account names of standard users 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.
Parameter properties
| Type: | String[] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 0 |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Parameter properties
| Type: | SwitchParameter |
| Default value: | False |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | wi |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.