New-WebSitesUser

New-WebSitesUser

Creates a user.

Syntax

Parameter Set: Default
New-WebSitesUser [-Name] <String> [[-PublishingUserName] <String> ] [[-PublishingPassword] <String> ] [-PipelineVariable <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]


 

Detailed Description

The New-WebSitesUser cmdlet creates a user.

Parameters

-Name<String>

Specifies a name for the user.

 

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-PipelineVariable<String>

Specifies a variable to be used with the pipeline operator.

 

Aliases

pv

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-PublishingPassword<String>

Specifies a publishing password for a user.

 

Aliases

none

Required?

false

Position?

3

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-PublishingUserName<String>

Specifies a publishing name for a user.

 

Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-Confirm

Prompts you for confirmation before executing the command.

 

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-WhatIf

Describes what would happen if you executed the command without actually executing the command.

 

Required?

false

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.

Examples

Example 1: Create a user

This command creates a user with the name User01 and a publishing name of PubUser01.

PS C:\> New-WebSitesUser -Name "User01" -PublishingUserName "PubUser01" -PublishingPassword "PubPassWord01!"

 

Related topics

Get-WebSitesUser

Set-WebSitesUser

Remove-WebSitesUser