Remove managed workspace inheritance

Is there any method for removing the inheritance property on managed workspaces?  I have a few dozen that I need to make this adjustment.

  • Set-PWManagedWorkspaceForFolders has a -NoInheritance option that turns it off, but i'm not sure if other parameters are mandatory, and i'm not sure if it does a copy of existing associations when applied.

        Associates the specified Managed Workspace Configuration Block to the Input Folder(s).
        Set-PWManagedWorkspaceForFolders [-InputFolders] <ProjectWiseFolder[]> [-WorkspaceType] <string> [-ConfigurationBlockName] <string>
        [-NoInheritance <SwitchParameter>] [<CommonParameters>]
        -InputFolders <ProjectWiseFolder[]>
            Target folder object(s) from pipeline.
        -WorkspaceType <string>
            Select the type of Managed Workspace containing the desired configuration settings block to be used. Valid entries: "Predefined", "Global",
            "Application", "Customer", "Site", "Workspace", "WorkSet", "Role", "User"
        -ConfigurationBlockName <string>
            Name of configuration block to be added to project. Use Get-PWManagedWorkspaceConfigBlocks to get a list of available configuration blocks.
        -NoInheritance <SwitchParameter>
            When included, inheritance will be toggled off for the folder.
            This cmdlet supports the common parameters: Verbose, Debug,
            ErrorAction, ErrorVariable, WarningAction, WarningVariable,
            OutBuffer, PipelineVariable, and OutVariable. For more information, see
            about_CommonParameters (
        ----------  EXAMPLE 1  ----------
        Associates MyConfigBlockName to the folder's Managed Workspace type Workset/Project. Turns off inheritance.
        Get-PWFolders -FolderPath 'Top Level\Sub-Folder' -JustOne |
                    Set-PWManagedWorkspaceForFolders -WorkspaceType 'WorkSet' -ConfigurationBlockName 'MyConfigBlockName' -NoInheritance -Verbose
        ----------  EXAMPLE 2  ----------
        Associates MyConfigBlockName to each of the folder's Managed Workspace type Workset/Project.
        $folders = Get-PWFolders -FolderPath 'Top Level\Sub-Folder'
                    Set-PWManagedWorkspaceForFolders -InputFolders $folders -WorkspaceType 'WorkSet' -ConfigurationBlockName 'MyConfigBlockName'
        To see the examples, type: "get-help Set-PWManagedWorkspaceForFolders -examples".
        For more information, type: "get-help Set-PWManagedWorkspaceForFolders -detailed".
        For technical information, type: "get-help Set-PWManagedWorkspaceForFolders -full".


Reply Children
No Data