Get-WssMsoUser

Get-WssMsoUser

Gets the online service account for a user.

Syntax

Parameter Set: Default
Get-WssMsoUser [[-MsoUserName] <String> ] [ <CommonParameters>]

Detailed Description

The Get-WssMsoUser cmdlet gets the online service account for a user principal name (UPN) from . If you do not specify a UPN, the cmdlet gets all online service accounts.

Parameters

-MsoUserName<String>

Specifies a UPN. The cmdlet gets the online service account for the UPN that you specify.

Aliases

none

Required?

false

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
    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: Get an online service account

This command gets the online service account for the specified UPN.

PS C:\> Get-WssMsoUser -MsoUserName "DavidChew@TSQA.Contoso.com" 

Add-WssMsoUser

Disable-WssMsoUser

Enable-WssMsoUser

Remove-WssMsoUser