Event Hubs - Retreive Server Details

Hello,

I use PowerShell alot have just setup PSU in the last 9 months

Managed to roll out a few Apps and automate scripts

I am trying without success to run a script on a remote server to retreive Server Information

Acheivements thus far:

  • Created an Event Hub
  • have a test Agent (Successfully Connected) to the hub
  • Been able, with the documentation to write to a test file on the remote server (Agent)

Challange:

Tried to follow the Videos, and Event Hub documentation to create a script, but am lost how to construct the scriptblock, using the send-PSUEvent.

Thanks in advance