Enable-FolderRedirection
Enables the group policy setting for folder redirection.
Syntax
Enable-FolderRedirection
[-AllFolder]
Enable-FolderRedirection
-Folder <String[]>
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[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for