Set-SyncShare

Set-SyncShare

Modifies the settings for a sync share.

구문

Parameter Set: Query (cdxml)
Set-SyncShare [-Name] <String[]> [-AsJob] [-CimSession <CimSession[]> ] [-Description <String> ] [-FallbackEnterpriseID <String> ] [-InheritParentFolderPermission] [-MaxUploadFile <UInt64> ] [-PassThru] [-PasswordAutolockExcludeDomain <String[]> ] [-RequireEncryption <Boolean> ] [-RequirePasswordAutoLock <Boolean> ] [-ThrottleLimit <Int32> ] [-User <String[]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: InputObject (cdxml)
Set-SyncShare -InputObject <CimInstance[]> [-AsJob] [-CimSession <CimSession[]> ] [-Description <String> ] [-FallbackEnterpriseID <String> ] [-InheritParentFolderPermission] [-MaxUploadFile <UInt64> ] [-PassThru] [-PasswordAutolockExcludeDomain <String[]> ] [-RequireEncryption <Boolean> ] [-RequirePasswordAutoLock <Boolean> ] [-ThrottleLimit <Int32> ] [-User <String[]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

자세한 설명

The Set-SyncShare cmdlet modifies the settings for a sync share.

매개 변수

-AsJob

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-CimSession<CimSession[]>

원격 세션에서 또는 원격 컴퓨터에서 cmdlet을 실행합니다. New-CimSession 또는 Get-CimSession cmdlet의 출력과 같은 컴퓨터 이름이나 세션 개체를 입력합니다. 기본값은 로컬 컴퓨터의 현재 세션입니다.

별칭

Session

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Description<String>

Specifies a description for a sync share configuration. The description appears in 서버 관리자 and in Windows PowerShell® but is not visible 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, the user folder inherits 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

-InputObject<CimInstance[]>

Specifies the SyncShare object to use as input to this cmdlet. You can use this parameter, or you can use the pipeline operator to pass input to this cmdlet.

별칭

없음

필수 여부

true

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByValue)

와일드카드 문자 허용 여부

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

-PassThru

작업하고 있는 항목을 나타내는 개체를 반환합니다. 기본적으로 이 cmdlet은 출력을 생성하지 않습니다.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

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, then 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

-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 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>

이 cmdlet을 실행하도록 설정할 수 있는 최대 동시 작업 수를 지정합니다. 이 매개 변수가 생략되거나 값 0이 입력되면 Windows PowerShell®은 컴퓨터에서 실행 중인 CIM cmdlet의 수에 따라 cmdlet에 대한 최적의 제한 한도를 계산합니다. 제한 한도는 현재 cmdlet에만 적용되며 세션이나 컴퓨터에는 적용되지 않습니다.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-User<String[]>

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

별칭

AllowedAccount,AllowedUser

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-Confirm

cmdlet을 실행하기 전에 확인 메시지가 표시됩니다.

필수 여부

false

위치

named

기본값

false

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-WhatIf

cmdlet이 실행될 경우 결과 동작을 표시합니다. cmdlet이 실행되지 않습니다.

필수 여부

false

위치

named

기본값

false

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

  • SyncShare

    You can pass an array of SyncShare objects to the InputObject parameter by using the pipeline operator.

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • SyncShare

    If you specify the PassThru parameter, this cmdlet outputs an object that represents the modified sync shares.

예제

Example 1: Modify a sync share to enable inherited permissions

This command modifies settings on the share named Share01, and sets KeepParentFolderPermission to enable the share to inherit permissions from the parent folder.

PS C:\> Set-SyncShare Share01 -KeepParentFolderPermission 

Example 2: Modify the sync share to change the user group

This command modifies settings on the share named Share01, and sets the user group to ContosoGroup.

PS C:\> Set-SyncShare Share01 -User "ContosoGroup"

Example 3: Modify a sync share to add a user group

This example modifies settings on the share named Share01, and enables the user group named ContosoEngGroup to access the share.

The first command uses the Get-SyncShare cmdlet to retrieve the sync share for Share01, and assigns the results to the variable $Current.

The second command uses the Set-SyncShare cmdlet to modify the sync share and add the current user and the ContosoEngGroup to the list of users allowed to access the share.

The third command uses the Get-SyncShare cmdlet to verify the results.

PS C:\> $Current = Get-SyncShare Share01
PS C:\> Set-SyncShare Share01 -User $Current.user,"ContosoEngGroup"
PS C:\> Get-SyncShare Share01

관련 항목

Disable-SyncShare

Enable-SyncShare

Get-SyncShare

New-SyncShare

Remove-SyncShare