1

I want to collect the activity times from a machine which has no Interfaces to record the running Actions via wire. But I could put a PC with microphone close to that machine and listen to the microphone. If a certain noise Level is reached would indicate the activity, then record the timestamp until noise disappears.

Does anyone have an idea whether this is possible in Powershell and how to do it?

Jan Hohenheim
  • 3,552
  • 2
  • 17
  • 42
MMAX
  • 589
  • 1
  • 5
  • 9
  • are you looking to check a machines activity based on the sound of the fans? this doesn't sound like it would be a great solution honestly. can you run the script on that machine to just check CPU usage, and save the results onto a USB when you need them? – colsw Oct 06 '17 at 09:16
  • How do you see this working? I mean, the mic would pick up every sound, so how would you differentiate sounds? – Snak3d0c Oct 06 '17 at 09:30
  • @ConnorLSW: the "machine" is not a PC, it's a huge, old heating unit :-) – MMAX Oct 06 '17 at 09:43
  • @Snak3d0c: That's a matter of the threshold: The location of the machine is very silent if it's OFF and very noisy when turned on. Believe me, if there's a way to script this, that would be sufficient enough to calculate the runtime. – MMAX Oct 06 '17 at 09:43
  • @MMAX you won't find a process-audio cmdlet, you might be better off looking for how to do this in C# (i'm assuming [this](https://stackoverflow.com/questions/6196939/c-sharp-how-to-get-audio-decibel-values-with-time-span) might help) and looking at converting it to PS, this definitely won't be straightforward though. – colsw Oct 06 '17 at 10:02
  • @all: Thanks for your ideas. C# would probably do the trick but is definitely out of my scope. – MMAX Sep 16 '19 at 15:38

0 Answers0