Author Posts

January 1, 2012 at 12:00 am

by matttilford at 2013-04-23 14:38:46

Ok, a quick bit of background. We have AutoDesk network licences that we can view the current usage of using a program called JTB FlexReport. I am using it to output a html file which i am then reading into powershell so i can see which program is using the licence (mainly Revit or AutoCAD) but also which version.

The html output is mostly a standard html table.

$ReportApp = "JTB FlexReport LT.exe"
$ReportAppOpt = "/h"
Start-Process $ReportApp $ReportAppOpt

sleep -seconds 10

$file = Get-Content "$env:localappdata/Temp/JTBFlexReportLT.htm" | select-string "@" | Select-String "td"
$file | ForEach-Object {
$out = $file -replace "

$out = $out -replace "
abc@PE-PC-01 abc@PE-PC-01 .+?@(.+) (.+?)@(.+)

August 15, 2013 at 12:19 pm

Would you mind posting your completed script or emailing me a copy. We're trying to do the same thing. Thanks

August 15, 2013 at 2:25 pm

Randy, this post came from our old forums, so Matt won't see your request. He's at @matttilford on Twitter, if you'd like to try there.