Share via


Import-WssUser

Import-WssUser

Imports a user from Active Directory.

Syntax

Parameter Set: Default
Import-WssUser -SamAccountName <String> [ <CommonParameters>]

Detailed Description

The Import-WssUser cmdlet imports a user from Active Directory (AD). Following the import, use the UI to manage the user in server.

Parameters

-SamAccountName<String>

Specifies the Security Account Manager (SAM) name for a user.

Aliases

none

Required?

true

Position?

named

Default Value

none

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.

Outputs

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

Examples

Example 1: Import a user

This command imports a user from AD.

PS C:\> Import-WssUser -Name "SarahJones" 

Add-WssUser

Get-WssUser

Remove-WssUser

Sync-WssUser