Adding variable to table output

Hi,

I am new to PowerShell and still learning as I go. I am trying to generate a M365 license report and need to be able to out a variable and a command output to the same table, so I can export it to csv. I’ve tried every combination but half the battle is know what the correct term to search Google with! :slight_smile:

I am trying to insert the contents of $usr into the table output here:

Any clues on what I need to google?

Just throw it in another calculated property at the end

@{n="UserID";e={$usr}}

Hero! Thank you very much. So that is called a “calculated property”.

Yup yup.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.