Disable-FolderRedirection

Disables the group policy setting for folder redirection.

Syntax

Disable-FolderRedirection
       [-AllFolder]
Disable-FolderRedirection
       -Folder <String[]>

Description

The Disable-FolderRedirection cmdlet disables the group policy setting for folder redirection. You can disable this setting either on all pre-defined folders or folders that you specify.

Examples

Example 1: Disable the group policy setting for folder redirection

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

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

Parameters

-AllFolder

Indicates that the cmdlet disables the group policy setting for folder redirection on 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 disable the group policy setting for folder redirection.

Type:String[]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False