Get-WssMsoAssignedUser
Get-WssMsoAssignedUser
Gets the online service account for a user.
Syntax
Parameter Set: Default
Get-WssMsoAssignedUser [[-WssUserName] <String> ] [ <CommonParameters>]
Detailed Description
The Get-WssMsoAssignedUser cmdlet gets the online service account assigned to a local network user account from . If you do not specify a user, the cmdlet gets all online service accounts.
Parameters
-WssUserName<String>
Specifies the name of a user account. The cmdlet gets the online service account that corresponds to the user account 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 a Microsoft account
This command gets the online service account for the user account named DavidChew.
PS C:\> Get-WssMsoAssignedUser -WssUserName "DavidChew"
PS C:\>