Partager via


Win32_FolderRedirection class

Represents the redirection properties of a known folder.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

class Win32_FolderRedirection
{
  string  FolderId;
  uint8   RedirectionType;
  string  RedirectionPath;
  boolean ExclusiveRightsGranted;
  boolean ContentsMovedOnPolicyRemoval;
  boolean ContentsMoved;
  boolean ContentsRenamedInLocalCache;
  boolean MakeFoldersAvailableOfflineDisabled;
};

Members

The Win32_FolderRedirection class has these types of members:

Properties

The Win32_FolderRedirection class has these properties.

ContentsMoved

Data type: boolean

Access type: Read/write

If true, the files and directories in the known folder will be moved to the new location in the server share in two steps:

  1. The files and directories in the known folder are copied into the local UNC location.
  2. The files and directories in all redirected folders in the local UNC location are synchronized with the files and directories in the corresponding folders in the server share. This causes the files and directories to be moved from the local UNC location to the server share.

ContentsMovedOnPolicyRemoval

Data type: boolean

Access type: Read/write

If true, the files and directories in the known folder will be moved back to the local user profile when the redirection policy is removed.

If false, the folder will remain in the redirected location after the redirection policy is removed.

ContentsRenamedInLocalCache

Data type: boolean

Access type: Read/write

If true, the files and directories in the known folder are renamed from the old location to the new location in the Offline Files cache. Note that setting this property does not move the files and directories. To move them, you must set the ContentsMoved property.

ExclusiveRightsGranted

Data type: boolean

Access type: Read/write

If true, the user whose files are being redirected will be granted exclusive rights to the folder.

If false, the folder's access permissions are not changed.

FolderId

Data type: string

Access type: Read-only

Qualifiers: Key

The GUID for the known folder. One of the following values.

For This Known Folder: Use This Known Folder Identifier:
Application Data Roaming FOLDERID_RoamingAppData
Desktop FOLDERID_Desktop
Start Menu FOLDERID_StartMenu
Documents FOLDERID_Documents
Pictures FOLDERID_Pictures
Music FOLDERID_Music
Videos FOLDERID_Videos
Favorites FOLDERID_Favorites
Contacts FOLDERID_Contacts
Downloads FOLDERID_Downloads
Links FOLDERID_Links
Searches FOLDERID_SavedSearches
Saved Games FOLDERID_SavedGames

MakeFoldersAvailableOfflineDisabled

Data type: boolean

Access type: Read/write

If true, redirected folders will not automatically be made available offline.

RedirectionPath

Data type: string

Access type: Read/write

The redirection path to be used if the value of the RedirectionType property is ToFullPath or ToUserFolder.

RedirectionType

Data type: uint8

Access type: Read/write

The type of folder redirection to be performed.

Value Meaning
ToFullPath
0
Redirect to the location specified by the RedirectionPath property.
ToLocalUserProfile
1
Redirect to the local user profile.

Requirements

Minimum supported client
Windows 8 [desktop apps only]
Minimum supported server
Windows Server 2012 [desktop apps only]
Namespace
Root\CIMv2
MOF
FolderRedirectionWMIProvider.mof

See also

Win32_FolderRedirectionHealth

Win32_FolderRedirectionHealthConfiguration

Win32_FolderRedirectionUserConfiguration