Get-WssMsoSharePointPrincipal
Get-WssMsoSharePointPrincipal
Gets all principal objects, including users and groups.
Syntax
Parameter Set: Default
Get-WssMsoSharePointPrincipal [[-UserName] <String> ] [ <CommonParameters>]
Detailed Description
The Get-WssMsoSharePointPrincipal cmdlet gets all principal objects, including users and groups.
Parameters
-UserName<String>
Specifies a name for a user account. The cmdlet gets all principal objects for the user name that you specify.
Aliases |
none |
Required? |
false |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (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.
Outputs
The output type is the type of the objects that the cmdlet emits.
- SharepointPrincipal[]
Examples
Example 1: Get principal objects
This command gets the principal objects.
PS C:\> $Principals = Get-WssMsoSharePointPrincipal
PS C:\>