Remove-WssUser

Remove-WssUser

Deletes a user.

Syntax

Parameter Set: Default
Remove-WssUser -Name <String> [ <CommonParameters>]

Detailed Description

The Remove-WssUser cmdlet deletes a user from a server.

Parameters

-Name<String>

Specifies the logon name of a user.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

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).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Delete a user

This command deletes a user from WSS by using the logon name.

PS C:\> Remove-WssUser -Name "SarahJones" 

Add-WssUser

Get-WssUser

Import-WssUser

Sync-WssUser