Add-WssUser
Add-WssUser
Adds a new user account.
構文
Parameter Set: Default
Add-WssUser [-Name] <String> [-Password] <SecureString> [-AccessLevel <String> ] [-AllowRemoteAccess] [-AllowVpnAccess] [-FirstName <String> ] [-GroupName <String> ] [-LastName <String> ] [ <CommonParameters>]
詳細説明
The Add-WssUser cmdlet adds a new user account to the server. Use the parameters to grant the account access to services or set access levels.
パラメーター
-AccessLevel<String>
Specifies the access level for a user. To give the user administrative access, specify Administrator; otherwise, specify User for a standard user.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-AllowRemoteAccess
Indicates that the user can access the Remote Web Access website.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-AllowVpnAccess
Indicates that the user can access the VPN server.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-FirstName<String>
Specifies the first name of a user.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-GroupName<String>
Specifies the name of a group.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-LastName<String>
Specifies the last name of a user.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Name<String>
Specifies a user account name.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Password<SecureString>
Specifies a password for a user, as a secure string.
エイリアス |
なし |
必須? |
true |
位置は? |
2 |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
Microsoft.WindowsServerSolutions.Users.User
This cmdlet returns the user object created by this cmdlet.
例
Example 1: Add a user
This command adds a user with administrative access and remote web access to a server.
PS C:\> Add-WssUser -AccessLevel "Administrator" -Name "SarahJones" -FirstName "Sarah" -LastName "Jones" -AllowRemoteAccess
関連トピック
Import-WssUser
Sync-WssUser