Disable-FolderRedirection
Disable-FolderRedirection
Disables the group policy setting for folder redirection.
Syntax
Parameter Set: All
Disable-FolderRedirection -AllFolder [ <CommonParameters>]
Parameter Set: Specific
Disable-FolderRedirection -Folder <String[]> [ <CommonParameters>]
Detailed 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.
Parameters
-AllFolder
Indicates that the cmdlet disables the group policy setting for folder redirection on 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 disable 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: Disable the group policy setting for folder redirection
This command disables the group policy setting for folder redirection for the contacts and video folders.
PS C:\> Disable-FolderRedirection -Folder "Contacts","Videos"