It is currently October 21st, 2019, 6:26 am

Extend illustro\Network to display AD Domain name

Post your work-in-progress and completed skins to share and discuss.
burdavitek
Posts: 1
Joined: July 6th, 2019, 8:30 pm

Extend illustro\Network to display AD Domain name

burdavitek » July 6th, 2019, 8:41 pm

Hi,

might be handy when using AD Domain managed device to detect when the computer is connected "home".
Add this to mentioned Network.ini

Code: Select all

[measureDomain]
Measure=Plugin
Plugin=PowershellRM
Line=(Get-NetConnectionProfile | Where-Object {$_.NetworkCategory -match 'DomainAuthenticated'} | Select Name | Format-Wide -Property Name -Column 1 | Out-String).Trim() 
Substitute="":"N/A"

[meterDomainNetLabel]
Meter=String
MeterStyle=styleLeftText
X=10
Y=100
W=190
H=14
Text=AD Domain

[meterDomainNetValue]
Meter=String
MeterStyle=styleRightText
MeasureName=measureDomain
X=200
Y=0r
W=190
H=14
Text=%1