r/PowerShell • • Jan 18 '19

I made a thing (Powershell Universal Dashboard)

Hi all,

Sometimes getting the idea is half the work. So I’m posting this for inspiration, and, frankly, to toot my own horn!

https://forums.universaldashboard.io/t/dashboard-displaying-information-on-consultants-and-employees/281

Monthly, at least, HR had to go through the process of gathering information on consultants, by going to Supply Chain Management and have them scrape data off contracts. That’s all lot of of the same work again and again.

So they realized that a lot of that information where already present “digitally” in our AD: contract expirations were reflected in account expiration, place of work, department and who they report to as well.

With some simple scripts to gather and treat the data from AD, and the magic that is Universal Dashboard. I was able to make a dashboard that show consultants distribution in the company, both organizational and geographical. The planned decline in consultants and of course what assets they are registered owner of (assets details are stored in a database I coincidentally made for fun recently).

Most of the stuff I do with powershell goes unnoticed, but this is the first time I’ve ever had management look at something I made. Pretty great feeling!

Enjoy your weekend!

141 Upvotes

28 comments sorted by

18

u/[deleted] Jan 18 '19

care to share your scripts on github? Looks really nice

14

u/PorreKaj Jan 18 '19

I’ll have to edit it a bit, but I’ll get to it.

0

u/[deleted] Jan 18 '19

[deleted]

2

u/PorreKaj Jan 18 '19

Neither am I, but being able to build it using powershell makes it a lot easier.

0

u/[deleted] Jan 18 '19

[deleted]

4

u/PorreKaj Jan 18 '19

Haha.

While being data from AD it’s based on some specific group memberships.

If your goal is just to just show a table or a grid I’ll be happy to make an example of that.

6

u/lordv0ldemort Jan 18 '19

UniversalDashboard.Community is free and full featured. The main thing it's missing is authentication but if you're building something for local use or that doesn't need auth, it's super fun and easy to do! Great module IMO.

5

u/poshftw Jan 18 '19

The main thing it's missing is authentication

Just throw it under separate site in the IIS and enable Windows auth.

2

u/lordv0ldemort Jan 19 '19

Thanks! I haven’t needed auth for anything yet so I haven’t really concerned myself with it yet.

2

u/[deleted] Jan 19 '19

Or if linux, nginx reverse proxy with auth.

1

u/occamsrzor Jan 22 '19

Good thinking!

1

u/belibebond Jan 22 '19

u/lordv0ldemort Is it really free? it says $99 for me. Is there a community edition or something that i am missing.

1

u/lordv0ldemort Jan 22 '19

Use Install-Module UniversalDashboard.Community

Universaldashboards.io is a good resource.

4

u/Theratchetnclank Jan 18 '19

Pump the info into elasticsearch or a time series database and display it with grafana.

It's a lot easier than you think

2

u/[deleted] Jan 19 '19

time series db?

2

u/Theratchetnclank Jan 19 '19

A time based database which is suited to lots of queries such as influxdb. They are good for holding stats.

2

u/[deleted] Jan 19 '19

Thank you!

3

u/JamieKinq Jan 18 '19

Hey, great work! Be interested in seeing your scripts as I've done something similar with AD data but just need to create my reports off the scraped data now + I just need to get IT to update/input various AD attributes!

1

u/PorreKaj Jan 19 '19

I’ll be converting it to something more general AD and posting it on github :-)

2

u/tandriin Jan 19 '19

Very Nice!

Where do you Store the Asset-Data? Also in AD?

2

u/PorreKaj Jan 19 '19

System Center Service manager (old system) but it’s slow so I pull the data into a database where it is easier to get to.

8

u/Ipecactus Jan 18 '19

I did something similar to this last year using Power BI. The Power Query feature, which is also available in Excel, allows you to query AD.

5

u/Bren0man Jan 18 '19

OP, this is amazing!! I had no idea this cool Universal Dashboard thing existed!!

Just in case anyone google's it and is also confused momentarily, it appears as though https://poshud.com and https://universaldashboard.io are the same project. https://universaldashboard.io appears to be current.

1

u/[deleted] Jan 19 '19

very cool

0

u/[deleted] Jan 19 '19

[deleted]

2

u/PorreKaj Jan 19 '19

Thanks. Time was definitely an issue. Made a lot of it on my own time (I don’t mind doing fun stuff outside work).