- Get-Sync Share
- Syntax
- Description
- Examples
- Example 1: Get all Sync Shares on a server
- Example 2: Get a specific Sync Share
- Parameters
- Windows sync share service
- Вопрос
- Ответы
- New-Sync Share
- Syntax
- Description
- Examples
- Example 1: Create a new sync share
- Example 2: Create a new sync share by using full usernames to name user folders
- Parameters
- Outputs
Get-Sync Share
Gets one or more Sync Shares.
Syntax
Description
The Get-SyncShare cmdlet gets one or more Sync Shares and displays their settings.
Examples
Example 1: Get all Sync Shares on a server
This command gets all of the Sync Shares on the server.
Example 2: Get a specific Sync Share
This command gets the Sync Share named Contoso-share01.
Parameters
Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.
Type: | CimSession [ ] |
Aliases: | Session |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies an array of names of Sync Shares that this cmdlet gets.
Type: | String [ ] |
Position: | 1 |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies a Virtual Computer Object (VCO), if the server is part of a cluster. Use this parameter to return the Sync Shares that belong to a VCO.
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShellВ® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.
Windows sync share service
Вопрос
Hi everyone, I’m using Windows Server 2012 R2 and I got a red message under Local Server -> services section.
Windows Sync Share seems to not be able to start. When I check logs I can read this message :
The Sync Share service terminated with the following service-specific error:
General access denied error
So first I don’t even know what is this service and what is its function and then does anyone is able to help me to understand this error ?
Ответы
Service name: SyncShareSvc;
Display name: Windows Sync Share.
The Windows Sync Share service enables client devices to sync files from a file server.
Would you please let me confirm if had installed the File and Storage Services role on the Windows Server 2012 R2, and then enabled Work Folders feature which is available in Windows Server 2012 R2 as part of the File and Storage Services role?
Regarding to Work Folders, please refer to following articles.
Please open Services and navigate to Windows Sync Share service, then right click it and select Properties. In properties page, please select Log On tab and check which account this service logged on as. Was it Local Service account?
Meanwhile, please open Event Viewer and let me know the complete error message of the Sync Share service (include Source and Event ID).
New-Sync Share
Creates a Sync Share.
Syntax
Description
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.
Examples
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.
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.
Parameters
Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.
Type: | CimSession [ ] |
Aliases: | Session |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the description for a sync share configuration. The description is visible in Server Manager and in Windows PowerShell, but does not appear to end users. The description can have a maximum of a 150 characters.
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies the fallback Enterprise ID that the Sync Share uses if it cannot successfully query Active DirectoryВ® Domain Services (nextref_adds). If the server cannot successfully query nextref_adds, 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 nextref_adds 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 instance, EvanNarvaez@Contoso.com yields the contoso.com Enterprise ID.
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
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, each user is granted exclusive access to their user folder, and administrators have no access rights.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies the maximum file size, in bytes, that users can upload to the server. The minimum value that you can specify is 1 MB.
Type: | UInt64 |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
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: <>:»/\\|?*
Type: | String |
Position: | 1 |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies a list of domain names in fully qualified domain name (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.
Type: | String [ ] |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
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 Universal Naming Convention (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.
Type: | String |
Position: | 2 |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Indicates whether the Sync Server requests that the contents of work folders be encrypted on each PC and device that accesses the Sync Share.
Type: | Boolean |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
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
Type: | Boolean |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShellВ® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.
Type: | Int32 |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the type of the Sync Share. By default, all shares are of type User Data, and you should not change this value.
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
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.
Type: | String [ ] |
Aliases: | AllowedAccount, AllowedUser |
Position: | 3 |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
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.
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
This cmdlet outputs an object that represents the new Sync Share.