Protect-UDSection
Synopsis
Hides a section of a dashboard if the user is not part of the specified role.
Syntax
Protect-UDSection [-Children] <ScriptBlock> [-Role] <String[]> [<CommonParameters>]Description
Hides a section of a dashboard if the user is not part of the specified role.
Parameters
-Children
The content to hide.
Required? true
Position? 1
Default value
Accept pipeline input? false
Aliases
Accept wildcard characters? false-Role <String[]>
The role the user must be a part of.
Common parameters
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
Outputs
Examples
Example 1: Protect Section
Hides the section of the dashboard if the user is not an administrator.
Last updated
Was this helpful?