Skip to content

Commit 9dedf6d

Browse files
authored
Merge branch 'master' into patricka-dism
2 parents 4b838c5 + ca44cec commit 9dedf6d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+3064
-642
lines changed
Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
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+
Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
---
2+
description: Provides one or more standard, non-Administrator users access to event, service, performance counter, and role and feature inventory data for a server that you are managing by using Server Manager.
3+
external help file: ServerManager-help.xml
4+
Module Name: ServerManager
5+
ms.date: 09/08/2021
6+
online version: https://docs.microsoft.com/powershell/module/servermanager/enable-servermanagerstandarduserremoting?view=windowsserver2022-ps&wt.mc_id=ps-gethelp
7+
schema: 2.0.0
8+
title: Enable-ServerManagerStandardUserRemoting
9+
---
10+
11+
# Enable-ServerManagerStandardUserRemoting
12+
13+
## SYNOPSIS
14+
Provides one or more standard, non-Administrator users access to event, service, performance counter, and role and feature inventory data for a server that you are managing by using Server Manager.
15+
16+
## SYNTAX
17+
18+
```
19+
Enable-ServerManagerStandardUserRemoting [-User] <String[]> [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
20+
```
21+
22+
## DESCRIPTION
23+
Provides one or more standard, non-Administrator users access to event, service, performance counter, and role and feature inventory data for a server that you are managing, either locally or remotely, by using Server Manager.
24+
The cmdlet must be run locally on the server that you are managing by using Server Manager.
25+
The cmdlet works by performing the following actions:
26+
27+
- Adds access rights for specified standard users to the root\cimv2 namespace on the local server (for access to role and feature inventory information).
28+
29+
- Adds specified standard users to required user groups (Remote Management Users, Event Log Readers, and Performance Log Readers) that allow remote access to event and performance counter logs on the managed server.
30+
31+
- Changes access rights in the Service Control Manager to allow specified standard users remote access to the status of services on the managed server.
32+
33+
This cmdlet does not provide standard users access to bpa (BPA) results, or allow standard users to run BPA scans.
34+
Aside from the preceding list of changes, this cmdlet provides no additional access that a standard user does not already have, by default, on managed servers.
35+
36+
Running this cmdlet has security implications for your network environment because it grants specified non-Administrator users access rights to information that, by default, is restricted to members of the Administrators group on the local computer.
37+
The cmdlet provides access to other WMI providers in the root\cimv2 namespace, but only those providers that can be used by standard users.
38+
We recommend that you run this cmdlet only when you must add a specific standard user to the users who require access to remote server data by using Server Manager.
39+
Additionally, you should promptly run `Disable-ServerManagerStandardUserRemoting` to deny this access to users as soon as they no longer require it.
40+
41+
## EXAMPLES
42+
43+
### Example 1
44+
```powershell
45+
Enable-ServerManagerStandardUserRemoting -User JennyL
46+
```
47+
48+
In the following example, the administrator gives a standard user named JennyL access to event, performance counter, service status, and role and feature inventory data on a server that is being managed, either locally or remotely, by using Server Manager.
49+
50+
### Example 2
51+
```powershell
52+
Enable-ServerManagerStandardUserRemoting -User JennyL -WhatIf
53+
```
54+
55+
In the following example, the administrator views the outcome of running a command to give a standard user named JennyL access to event, performance counter, service status, and role and feature inventory data on a server that is being managed, either locally or remotely, by using Server Manager.
56+
The `WhatIf` parameter is added, meaning that the command actions are not carried out.
57+
58+
### Example 3
59+
```powershell
60+
Enable-ServerManagerStandardUserRemoting -User JennyL -Confirm
61+
```
62+
63+
In the following example, the administrator gives a standard user named JennyL access to event, performance counter, service status, and role and feature inventory data on a server that is being managed, either locally or remotely, by using Server Manager.
64+
The `Confirm` parameter is added, meaning that the command prompts for confirmation before performing the action.
65+
66+
## PARAMETERS
67+
68+
### -Force
69+
70+
Forces the command to run without asking for user confirmation.
71+
72+
```yaml
73+
Type: SwitchParameter
74+
Parameter Sets: (All)
75+
Aliases:
76+
77+
Required: False
78+
Position: Named
79+
Default value: None
80+
Accept pipeline input: False
81+
Accept wildcard characters: False
82+
```
83+
84+
### -User
85+
Specifies the user account name of a standard user who runs Server Manager, and requires access to event, performance counter, service, and role and feature inventory data for remote servers that are managed by using the local Server Manager console.
86+
87+
```yaml
88+
Type: String[]
89+
Parameter Sets: (All)
90+
Aliases:
91+
92+
Required: True
93+
Position: 0
94+
Default value: None
95+
Accept pipeline input: False
96+
Accept wildcard characters: False
97+
```
98+
99+
### -Confirm
100+
Prompts you for confirmation before running the cmdlet.
101+
102+
```yaml
103+
Type: SwitchParameter
104+
Parameter Sets: (All)
105+
Aliases: cf
106+
107+
Required: False
108+
Position: Named
109+
Default value: None
110+
Accept pipeline input: False
111+
Accept wildcard characters: False
112+
```
113+
### -WhatIf
114+
Shows what would happen if the cmdlet runs.
115+
The cmdlet is not run.
116+
117+
```yaml
118+
Type: SwitchParameter
119+
Parameter Sets: (All)
120+
Aliases: wi
121+
122+
Required: False
123+
Position: Named
124+
Default value: None
125+
Accept pipeline input: False
126+
Accept wildcard characters: False
127+
```
128+
129+
### CommonParameters
130+
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).
131+
132+
## INPUTS
133+
134+
### None
135+
## OUTPUTS
136+
137+
### System.Object
138+
139+
## NOTES
140+
141+
## RELATED LINKS
142+
143+
[Get-WindowsFeature](./Get-WindowsFeature.md)
144+
145+
[Install-WindowsFeature](./Install-WindowsFeature.md)
146+
147+
[Uninstall-WindowsFeature](./Uninstall-WindowsFeature.md)
148+
149+
[Disable-ServerManagerStandardUserRemoting](./Disable-ServerManagerStandardUserRemoting.md)
150+

0 commit comments

Comments
 (0)