New-WebSitesUser

Creates a website user.

Syntax

New-WebSitesUser [-Name] <String> [[-PublishingUserName] <String>] [[-PublishingPassword] <String>] [-Confirm]
 [-RemoteSettings <RemoteSettings>] [-SuppressRequestIdLine] [-WhatIf] [<CommonParameters>]

Description

The New-WebSitesUser cmdlet creates a website user.

Examples

Example 1: Create a user

PS C:\> New-WebSitesUser -Name "User01" -PublishingUserName "PubUser01" -PublishingPassword "PubPassWord01!"
This command creates a user that has the name User01. In addition, the command specifies a publishing name and publishing password for the user.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Specifies the name for the user account.
For example:

-Name "PattiF"

Type:String
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-PublishingPassword

Specifies the password for the PublishingUserName parameter.
PublishingUserName specifies the account name used for publishing website content.

For example:

-PublishingPassword "p@ssw0rd"

Type:String
Required:False
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-PublishingUserName

Specifies the user account name used when publishing website content.
For example:

-PublishingUserName "PattiFPublishing"

Type:String
Required:False
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

-RemoteSettings

{{Fill RemoteSettings Description}}

Type:RemoteSettings
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-SuppressRequestIdLine

{{Fill SuppressRequestIdLine Description}}

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs.
The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False