Enable-FolderRedirection
Enable-FolderRedirection
Enables the group policy setting for folder redirection.
Syntax
Parameter Set: All
Enable-FolderRedirection -AllFolder [ <CommonParameters>]
Parameter Set: Specific
Enable-FolderRedirection -Folder <String[]> [ <CommonParameters>]
Detailed 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.
Parameters
-AllFolder
Indicates that the group policy setting for folder redirection affects all pre-defined folders.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Folder<String[]>
Specifies an array of folder names for which you want to enable the group policy setting for folder redirection.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Enable the group policy setting for folder redirection
This command enables the group policy for folder redirection for the contacts and video folders.
PS C:\> Enable-FolderRedirection -Folder "Contacts","Videos"