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>]
Target folder object(s) from pipeline.
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"
Name of configuration block to be added to project. Use Get-PWManagedWorkspaceConfigBlocks to get a list of available configuration blocks.
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
---------- 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".
I will get it a try on a test project. Thanks!
Any luck finding a solution for this need? Seems like it's picking up the existing association in the verbose logging; however, the -NoInheritance switch doesn't appear to have any effect.
No. I ended up dealing with it manually.
Please reply with the actual command line you are using, along with the verbose output. Be sure to use the Verbose switch.
Mark Weisman | Bentley Systems