答案 0 :(得分:1)
您必须将Import-Module ActiveDirectory
$US = Get-ADUser -Filter "Enabled -eq '$true'" -Property Enabled
$Groups = Get-ADGroup -Filter "Name -like '*RDS Users' -and Name -ne 'RDS
Users'" | Select-Object -ExpandProperty Name
$Table = Foreach ($Group in $Groups)
{
$Arrayofmembers = Get-ADGroupMember -Identity $Group -ErrorAction Stop | Select-Object Name, SamAccountName
$compare = Compare-Object -ReferenceObject $US -DifferenceObject $Arrayofmembers -ExcludeDifferent -IncludeEqual -PassThru -Property SamAccountName -ErrorAction Stop | Select-Object Name, SamAccountName
[pscustomobject]@{
"Group Name" = $Group
"Name" = $compare.Name
"UserName" = $compare.SamAccountName
}
}
$table
节点插入MaskGroup中,然后使用属性Poster
将圆形蒙版图像设置为蒙版组。
在GitHub上查看Roku的maskUri
示例。