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.
NAME Set-PWManagedWorkspaceForFolders SYNOPSIS Associates the specified Managed Workspace Configuration Block to the Input Folder(s). SYNTAX Set-PWManagedWorkspaceForFolders [-InputFolders] <ProjectWiseFolder[]> [-WorkspaceType] <string> [-ConfigurationBlockName] <string> [-NoInheritance <SwitchParameter>] [<CommonParameters>] DESCRIPTION PARAMETERS -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. <CommonParameters> This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). ---------- 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' -Verbose REMARKS 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".
I will get it a try on a test project. Thanks!