Enable-FolderRedirection

Enables the group policy setting for folder redirection.

Syntax

Enable-FolderRedirection
      [-AllFolder]
      [<CommonParameters>]
Enable-FolderRedirection
      -Folder <String[]>
      [<CommonParameters>]

Description

The Enable-FolderRedirection cmdlet enables the group policy setting for folder redirection. This setting affects either all pre-defined folders or folders that you specify. You can use folder redirection to redirect the path of a folder to a new location.

Examples

Example 1: Enable the group policy setting for folder redirection

PS C:\> Enable-FolderRedirection -Folder "Contacts","Videos"

This command enables the group policy for folder redirection for the contacts and video folders.

Parameters

-AllFolder

Indicates that the group policy setting for folder redirection affects all pre-defined folders.

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Folder

Specifies an array of folder names for which you want to enable the group policy setting for folder redirection.

Type:String[]
Accepted values:AppDataRoamingprivate, Contacts, Desktop, Documents, Downloads, Favorites, Links, Music, Pictures, SavedGames, Searches, StartMenu, Videos
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False