Share via


Set-SyncShare

Set-SyncShare

Modifies the settings for a sync share.

Syntax

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

Detaillierte Beschreibung

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

Parameter

-AsJob

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-CimSession<CimSession[]>

Führt das Cmdlet in einer Remotesitzung oder auf einem Remotecomputer aus. Geben Sie einen Computernamen oder ein Sitzungsobjekt ein, z. B. die Ausgabe eines Cmdlets New-CimSession oder Get-CimSession. Der Standardwert ist die aktuelle Sitzung auf dem lokalen Computer.

Aliasse

Session

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-Description<String>

Specifies a description for a sync share configuration. The description appears in Server-Manager and in Windows PowerShell® but is not visible to end users. The description can have a maximum of a 150 characters.

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

True (ByPropertyName)

Platzhalterzeichen akzeptieren?

false

-FallbackEnterpriseID<String>

Specifies the fallback Enterprise ID that the sync share uses if it cannot successfully query Active Directory ®-Domänendienste (). 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.

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

True (ByPropertyName)

Platzhalterzeichen akzeptieren?

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.

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

True (ByPropertyName)

Platzhalterzeichen akzeptieren?

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.

Aliasse

Keiner

Erforderlich?

true

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

True (ByValue)

Platzhalterzeichen akzeptieren?

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.

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

True (ByPropertyName)

Platzhalterzeichen akzeptieren?

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: <>:\"/\\|?*

Aliasse

Keiner

Erforderlich?

true

Position?

2

Standardwert

Keiner

Pipelineeingaben akzeptieren?

True (ByPropertyName)

Platzhalterzeichen akzeptieren?

false

-PassThru

Gibt ein Objekt zurück, das das Element darstellt, mit dem Sie arbeiten. Standardmäßig wird von diesem Cmdlet keine Ausgabe generiert.

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

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.

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

True (ByPropertyName)

Platzhalterzeichen akzeptieren?

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.

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

True (ByPropertyName)

Platzhalterzeichen akzeptieren?

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

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

True (ByPropertyName)

Platzhalterzeichen akzeptieren?

false

-ThrottleLimit<Int32>

Gibt die maximale Anzahl von gleichzeitigen Vorgängen an, die zum Ausführen dieses Cmdlets eingerichtet werden können. Wenn dieser Parameter ausgelassen oder der Wert 0 eingegeben wird, berechnet Windows PowerShell® einen optimalen Drosselungsgrenzwert für das Cmdlet basierend auf der Anzahl der CIM-Cmdlets, die auf dem Computer ausgeführt werden. Die Drosselungsgrenze gilt nur für das aktuelle Cmdlet und nicht für die Sitzung oder den Computer.

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

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.

Aliasse

AllowedAccount,AllowedUser

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

True (ByPropertyName)

Platzhalterzeichen akzeptieren?

false

-Confirm

Sie werden vor dem Ausführen des Cmdlets zur Bestätigung aufgefordert.

Erforderlich?

false

Position?

named

Standardwert

falsch

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-WhatIf

Zeigt, was geschieht, wenn das Cmdlet ausgeführt wird. Das Cmdlet wird nicht ausgeführt.

Erforderlich?

false

Position?

named

Standardwert

falsch

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

<CommonParameters>

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Eingaben

Der Eingabetyp ist der Typ der Objekte, die über die Pipeline an das Cmdlet übergeben werden können.

  • SyncShare

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

Ausgaben

Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.

  • SyncShare

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

Beispiele

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

Verwandte Themen

Disable-SyncShare

Enable-SyncShare

Get-SyncShare

New-SyncShare

Remove-SyncShare