Remove-WssMsoUser

Remove-WssMsoUser

Removes an online service account.

Syntax

Parameter Set: Default
Remove-WssMsoUser [-WssUserName] <String> [[-Force]] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Remove-WssMsoUser cmdlet removes an online service account from . Specify the name of the local network user account that the account is assigned to.

Parameters

-Force

Forces the command to run without asking for user confirmation.

Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WssUserName<String>

Specifies the name of a user account. The cmdlet removes the online service account that is assigned to the account that you specify.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?

false

Position?

named

Default Value

false

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.

  • System.String

    WssUserName
    Type: System.String
    Description: local network account name of user

Outputs

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

Examples

Example 1: Remove an online service account

This command removes the online service account that is assigned to the local network account named EvanNarvaez.

PS C:\> Remove-WssMsoUser -WssUserName "EvanNarvaez"
PS C:\> 

Add-WssMsoUser

Disable-WssMsoUser

Enable-WssMsoUser

Get-WssMsoUser