New-SyncShare

New-SyncShare

Creates a sync share.

構文

Parameter Set: cim:CreateInstance0
New-SyncShare [-Name] <String> [-Path] <String> [-User] <String[]> [-AsJob] [-CimSession <CimSession[]> ] [-Description <String> ] [-FallbackEnterpriseID <String> ] [-InheritParentFolderPermission] [-MaxUploadFile <UInt64> ] [-PasswordAutolockExcludeDomain <String[]> ] [-RequireEncryption <Boolean> ] [-RequirePasswordAutoLock <Boolean> ] [-ThrottleLimit <Int32> ] [-Type <String> ] [-UserFolderName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The New-SyncShare cmdlet creates a sync share. Sync shares are used by Work Folders to store user files and sync them with user PCs and devices.

パラメーター

-AsJob

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-CimSession<CimSession[]>

リモート セッションまたはリモート コンピューターでコマンドレットを実行します。New-CimSession コマンドレットや Get-CimSession コマンドレットの出力など、コンピューター名またはセッション オブジェクトを入力します。既定値は、ローカル コンピューターで実行中の現在のセッションです。

エイリアス

Session

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Description<String>

Specifies the description for a sync share configuration. The description is visible in サーバー マネージャー and in Windows PowerShell®, but does not appear to end users. The description can have a maximum of a 150 characters.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-FallbackEnterpriseID<String>

Specifies the fallback Enterprise ID that the sync share uses if it cannot successfully query Active Directory® ドメイン サービス (). If the server cannot successfully query , the server uses the fully qualified domain name (FQDN) of the sync server as the fallback Enterprise ID unless you specify a different Enterprise ID by using this parameter. The Enterprise ID is issued by the Work Folders client to encrypt data on the PC or device.

The Enterprise ID is typically constructed by querying for the primary SMTP address of the user, removing the username and ampersand (user@), and sending the remainder to the client as the Enterprise ID. For example, EvanNarvaez@Contoso.com yields the contoso.com Enterprise ID.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-InheritParentFolderPermission

Indicates that the sync share inherits the permissions of the parent folder. If you specify this parameter, user folders inherit permissions from the parent folder of the sync share, and administrators can access the data. If you do not specify this parameter, by default each user is granted exclusive access to their user folder, and administrators have no access rights.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-MaxUploadFile<UInt64>

Specifies the maximum file size, in bytes, that users can upload to the server. The minimum value that you can specify is 1 MB.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Name<String>

Specifies a name for the sync share. The name that you specify has the following requirements:

-- The name must be unique on the sync server
-- The name can have a maximum of 75 characters
-- You cannot start or end a name with a space
-- You cannot end a name with a period
-- You cannot used a reserved name, such as COM1, LPT1, or NUL
-- You cannot use the following characters: <>:\"/\\|?*

エイリアス

なし

必須?

true

位置は?

2

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-PasswordAutolockExcludeDomain<String[]>

Specifies a list of domain names in FQDN format whose clients are to be exempted from the password policy. If the RequirePasswordAutoLock property on the sync share is false, then this parameter has no effect. If RequirePasswordAutoLock is true, clients that are members of the specified domains are not requested by Work Folders to enforce password length and lock policies on the device. It is assumed that their security is managed by the Group Policy of their domain.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Path<String>

Specifies the full path of a folder on an NTFS volume to use for the sync share. This is the folder that acts as the parent to the user folders. You can specify the path with a drive letter or UNC format, but the path must be local to the server or failover cluster. You cannot create a sync share inside another sync share, and the path cannot contain any mount points.

エイリアス

なし

必須?

true

位置は?

3

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-RequireEncryption<Boolean>

Indicates whether the sync server requests that the contents of Work Folders be encrypted on each PC and device that accesses the sync share.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-RequirePasswordAutoLock<Boolean>

Indicates whether the device must meet the following policies:

-- Password minimum length of six characters
-- Lock screen activates after a maximum of 15 minutes
-- User account lockout after a maximum of 10 failed sign-in attempts

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-ThrottleLimit<Int32>

このコマンドレットを実行するために確立できる最大同時操作数を指定します。このパラメーターを省略するか、値として 0 を入力した場合、Windows PowerShell® では、コンピューターで実行している CIM コマンドレットの数に基づいて、コマンドレットに対する最適なスロットル制限を計算します。スロットル制限は現在のコマンドレットのみに適用され、セッションまたはコンピューターには適用されません。

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Type<String>

Specifies the type of the sync share. By default, all shares are of type User Data, and you should not change this value.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-User<String[]>

Specifies an array of user names or security groups who are allowed to sync data with this sync share. Add accounts or security groups in Security Accounts Manager (SAM) account format.

エイリアス

AllowedAccount,AllowedUser

必須?

true

位置は?

4

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-UserFolderName<String>

Specifies a folder-naming format for the user folder on the sync share. To maintain compatibility with existing user folders that use aliases for their names, specify [user], which is required, or omit this parameter. To eliminate conflicts between identical user aliases in different domains, specify [user]@[domain]. You can also specify a relative path under the sync share root; for example, UserData\[user].

Sync share creates each user folder during the first sync operation, if it doesn’t already exist. If the user folder exists, confirm that the user has Read/Write or Full Control permissions and is the owner of their folder, unless the folder is owned by an Administrators group.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • SyncShare

    This cmdlet outputs an object that represents the new sync share.

Example 1: Create a new sync share

This command creates a new sync share named Share01. The path for the share is K:\Share01, and the cmdlet grants members of the ContosoEngGroup security group access to the share. The device policy associated with the share is also named Share01.

PS C:\> New-SyncShare Share01 K:\Share01 -User ContosoEngGroup 

Example 2: Create a new sync share by using full usernames to name user folders

This command creates a sync share and specifies that user folders should use the user @ domain folder-naming format.

PS C:\> New-SyncShare Share01 K:\Share01 -User ContosoEngGroup -UserFolderName [user]@[domain] 

関連トピック

Disable-SyncShare

Enable-SyncShare

Get-SyncShare

Remove-SyncShare

Set-SyncShare