PSfan
March 29, 2020, 10:25pm
1
Hello
I want to create a simple dash that will show the AD group name and total members.
Would the option below the best way or other options you suggest ?
Also , how do I enter the Poweshell string ? (get-adgroupmember ‘GroupName’).count
Import-Module UniversalDashboard
$Dashboard = New-UDDashboard -Title "Title" -Content {
New-UDLayout -Columns 3 -Content {
New-UDCard -Title "AD Group1"
New-UDCard -Title "AD Group2"
New-UDCard -Title "AD Group3"
New-UDCard -Title "AD Group4"
New-UDCard -Title "AD Group5"
New-UDCard -Title "AD Group6"
New-UDCard -Title "AD Group7"
}
}
Start-UDDashboard -Dashboard $Dashboard -Port 10005
PSfan
March 30, 2020, 10:38pm
2
Hello . so this worked below … any idea how I can reference a link below each group name ? so I want to enter a link for the user to click on and open a csv file with the group members .
Import-Module UniversalDashboard
$Dashboard = New-UDDashboard -Title "Title" -Content {
New-UDLayout -Columns 3 -Content {
New-UDCard -Title "AD Group1" -Text "$((get-adgroupmember ‘AD Group1’).Count) members"
New-UDCard -Title "AD Group2" -Text "$((get-adgroupmember ‘AD Group2’).Count) members"
New-UDCard -Title "AD Group3" -Text "$((get-adgroupmember ‘AD Group3’).Count) members"
New-UDCard -Title "AD Group4" -Text "$((get-adgroupmember ‘AD Group4’).Count) members"
New-UDCard -Title "AD Group5" -Text "$((get-adgroupmember ‘AD Group5’).Count) members"
New-UDCard -Title "AD Group6" -Text "$((get-adgroupmember ‘AD Group6’).Count) members"
New-UDCard -Title "AD Group7" -Text "$((get-adgroupmember ‘AD Group7’).Count) members"
}
}
Start-UDDashboard -Dashboard $Dashboard -Port 10005
OpsEng
March 31, 2020, 8:05am
3
Clickable cards was done here but a table or grid might be more suitable for your data.
UDElement can be used is this way to make anything clickable.
gav
1 Like