|
| 1 | +--- |
| 2 | +description: 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. |
| 3 | +external help file: ServerManager-help.xml |
| 4 | +Module Name: ServerManager |
| 5 | +ms.date: 09/15/2021 |
| 6 | +online version: https://docs.microsoft.com/powershell/module/servermanager/disable-servermanagerstandarduserremoting?view=windowsserver2022-ps&wt.mc_id=ps-gethelp |
| 7 | +schema: 2.0.0 |
| 8 | +title: Disable-ServerManagerStandardUserRemoting |
| 9 | +--- |
| 10 | + |
| 11 | +# Disable-ServerManagerStandardUserRemoting |
| 12 | + |
| 13 | +## SYNOPSIS |
| 14 | +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. |
| 15 | +This cmdlet performs the opposite action, for specified users, of the Enable-ServerManagerStandardUserRemoting cmdlet. |
| 16 | + |
| 17 | +## SYNTAX |
| 18 | + |
| 19 | +``` |
| 20 | +Disable-ServerManagerStandardUserRemoting [-User] <String[]> [-Force] [-WhatIf] [-Confirm] [<CommonParameters>] |
| 21 | +``` |
| 22 | + |
| 23 | +## DESCRIPTION |
| 24 | +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. |
| 25 | +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. |
| 26 | +The cmdlet works by performing the following actions: |
| 27 | + |
| 28 | +- Deletes access rights for specified standard users to the root\cimv2 namespace on the local server (for access to role and feature inventory information). |
| 29 | + |
| 30 | +- 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. |
| 31 | + |
| 32 | +- Removes access rights in the Service Control Manager for specified standard users who have access to the status of services on the local server. |
| 33 | + |
| 34 | +## EXAMPLES |
| 35 | + |
| 36 | +### Example 1 |
| 37 | +```powershell |
| 38 | +Disable-ServerManagerStandardUserRemoting -User JennyL |
| 39 | +``` |
| 40 | + |
| 41 | +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. |
| 42 | + |
| 43 | +### Example 2 |
| 44 | +```powershell |
| 45 | +Disable-ServerManagerStandardUserRemoting -User JennyL -WhatIf |
| 46 | +``` |
| 47 | + |
| 48 | +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. |
| 49 | +The `WhatIf` parameter is added, meaning that the command actions are not carried out. |
| 50 | + |
| 51 | +### Example 3 |
| 52 | +```powershell |
| 53 | +Disable-ServerManagerStandardUserRemoting -User JennyL -Confirm |
| 54 | +``` |
| 55 | + |
| 56 | +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. |
| 57 | +The `Confirm` parameter is added, meaning that the command prompts for confirmation before performing the action. |
| 58 | + |
| 59 | +## PARAMETERS |
| 60 | + |
| 61 | +### -Force |
| 62 | + |
| 63 | +Forces the command to run without asking for user confirmation. |
| 64 | + |
| 65 | +```yaml |
| 66 | +Type: SwitchParameter |
| 67 | +Parameter Sets: (All) |
| 68 | +Aliases: |
| 69 | + |
| 70 | +Required: False |
| 71 | +Position: Named |
| 72 | +Default value: None |
| 73 | +Accept pipeline input: False |
| 74 | +Accept wildcard characters: False |
| 75 | +``` |
| 76 | +
|
| 77 | +### -User |
| 78 | +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. |
| 79 | +
|
| 80 | +```yaml |
| 81 | +Type: String[] |
| 82 | +Parameter Sets: (All) |
| 83 | +Aliases: |
| 84 | + |
| 85 | +Required: True |
| 86 | +Position: 0 |
| 87 | +Default value: None |
| 88 | +Accept pipeline input: False |
| 89 | +Accept wildcard characters: False |
| 90 | +``` |
| 91 | +
|
| 92 | +### -Confirm |
| 93 | +Prompts you for confirmation before running the cmdlet. |
| 94 | +
|
| 95 | +```yaml |
| 96 | +Type: SwitchParameter |
| 97 | +Parameter Sets: (All) |
| 98 | +Aliases: cf |
| 99 | + |
| 100 | +Required: False |
| 101 | +Position: Named |
| 102 | +Default value: None |
| 103 | +Accept pipeline input: False |
| 104 | +Accept wildcard characters: False |
| 105 | +``` |
| 106 | +
|
| 107 | +### -WhatIf |
| 108 | +Shows what would happen if the cmdlet runs. |
| 109 | +The cmdlet is not run. |
| 110 | +
|
| 111 | +```yaml |
| 112 | +Type: SwitchParameter |
| 113 | +Parameter Sets: (All) |
| 114 | +Aliases: wi |
| 115 | + |
| 116 | +Required: False |
| 117 | +Position: Named |
| 118 | +Default value: None |
| 119 | +Accept pipeline input: False |
| 120 | +Accept wildcard characters: False |
| 121 | +``` |
| 122 | +
|
| 123 | +### CommonParameters |
| 124 | +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216). |
| 125 | +
|
| 126 | +## INPUTS |
| 127 | +
|
| 128 | +### None |
| 129 | +
|
| 130 | +## OUTPUTS |
| 131 | +
|
| 132 | +### System.Object |
| 133 | +
|
| 134 | +## NOTES |
| 135 | +
|
| 136 | +## RELATED LINKS |
| 137 | +
|
| 138 | +[Get-WindowsFeature](./Get-WindowsFeature.md) |
| 139 | +
|
| 140 | +[Install-WindowsFeature](./Install-WindowsFeature.md) |
| 141 | +
|
| 142 | +[Uninstall-WindowsFeature](./Uninstall-WindowsFeature.md) |
| 143 | +
|
| 144 | +[Enable-ServerManagerStandardUserRemoting](./Enable-ServerManagerStandardUserRemoting.md) |
| 145 | +
|
0 commit comments