Set-WssUserAccess

Modifies the user access setting.

Syntax

Set-WssUserAccess
   [-User] <User>
   [-GrantAccess]
   [-RevokeAccess]

Description

The Set-WssUserAccess cmdlet modifies the user access setting in sbs_sbs8_2.

Examples

Example 1: Modify user access

PS C:\> Set-WSSUserAccess -User $WSSUser -GrantAccess 2

This command modifies user access by granting ShareAccess to the user in the variable named WSSUser.

Parameters

-GrantAccess

Specifies the access to grant to a user. To set more than one access, you must call the cmdlet for each access. Valid values for this parameter are:

  • 1 RemoteAccess
  • 2 ShareAccess
  • 3 ComputerAccess
  • 4 MediaAccess
  • 5 AddInAccess
  • 6 DashboardAccess
  • 7 HomePageLinks
  • 8 NetworkAlertAccess
  • 9 VpnAccess
Type:SwitchParameter
Accepted values:InvalidAccess, RemoteAccess, ShareAccess, ComputerAccess, MediaAccess, AddInAccess, DashboardAccess, HomePageLinks, NetworkAlertAccess, VpnAccess
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RevokeAccess

Specifies the access to revoke from a user. Valid values for this parameter are:

  • 1 RemoteAccess
  • 2 ShareAccess
  • 3 ComputerAccess
  • 4 MediaAccess
  • 5 AddInAccess
  • 6 DashboardAccess
  • 7 HomePageLinks
  • 8 NetworkAlertAccess
  • 9 VpnAccess
Type:SwitchParameter
Accepted values:InvalidAccess, RemoteAccess, ShareAccess, ComputerAccess, MediaAccess, AddInAccess, DashboardAccess, HomePageLinks, NetworkAlertAccess, VpnAccess
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-User

Specifies a user object.

Type:User
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False