Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Modifies access for user groups.
Parameter Set: Default
Set-WssUserGroupAccess -Name <String> [-GrantAccess <WSSGroupType> {RemoteAccess | ShareAccess | ComputerAccess | MediaAccess | DashboardAccess | HomePageLinks | VpnAccess} ] [-RevokeAccess <WSSGroupType> {RemoteAccess | ShareAccess | ComputerAccess | MediaAccess | DashboardAccess | HomePageLinks | VpnAccess} ] [ <CommonParameters>]
The Set-WssUserGroupAccess cmdlet modifies access for user groups.
Specifies the access to grant. The cmdlet grants the access that you specify to users in the user group. To grant more than one type of access, run the cmdlet for each type to grant. The acceptable values for this parameter are:
-- 1 RemoteAccess
-- 2 ShareAccess
-- 3 ComputerAccess
-- 4 MediaAccess
-- 6 DashboardAccess
-- 7 HomePageLinks
-- 9 VpnAccess
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Specifies a name. The cmdlet modifies access for the group that you specify by name.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Specifies the access to revoke. The cmdlet revokes the access that you specify to users in the user group. To revoke more than one type of access, use the cmdlet for each type to revoke. The acceptable values for this parameter are:
-- 1 RemoteAccess
-- 2 ShareAccess
-- 3 ComputerAccess
-- 4 MediaAccess
-- 6 DashboardAccess
-- 7 HomePageLinks
-- 9 VpnAccess
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
The input type is the type of the objects that you can pipe to the cmdlet.
The output type is the type of the objects that the cmdlet emits.
This command grants ShareAccess to the group named HRGroup. The GrantAccess parameter specifies a value of 2, which corresponds to ShareAccess.
PS C:\> Set-WssUserGroupAccess -Name "HRGroup" -GrantAccess 2