Disable-WssMsoUser

Disable-WssMsoUser

Disables an online service account.

Syntax

Parameter Set: Default
Disable-WssMsoUser [-WssUserName] <String> [ <CommonParameters>]

Detailed Description

The Disable-WssMsoUser cmdlet disables the online service account that is assigned to a local user account. This prevents the disabled account from using the online portal.

Parameters

-WssUserName<String>

Specifies the name of a user account. The cmdlet disables 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

<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 - local network account name of user.

Outputs

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

Examples

Example 1: Disable a Microsoft account

This command disables the online service account that is assigned to the user account named PattiFuller.

PS C:\> Disable-WssMsoUser -WssUserName "PattiFuller"

Add-WssMsoUser

Enable-WssMsoUser

Get-WssMsoUser

Remove-WssMsoUser