Hi
Wondering if there is a way to dynamically output result parameter names as well as values from commandlet output so I can create table rows in html.
for instance
Get-CsUser
will output in PowerShell
Identity : CN=Mark Vale,OU=Users,OU=xxx
xxx,DC=xxxl,DC=xx
VoicePolicy : Unrestricted
VoiceRoutingPolicy :
ConferencingPolicy :
PresencePolicy :
DialPlan : xxx Dial Plan
LocationPolicy :
ClientPolicy : IMSecurityWarning
ClientVersionPolicy :
ArchivingPolicy :
ExchangeArchivingPolicy : Uninitialized
PinPolicy :
ExternalAccessPolicy : Allow Federation+Public+Outside Access
MobilityPolicy :
PersistentChatPolicy :
UserServicesPolicy :
HostedVoiceMail : True
HostedVoicemailPolicy : xxxUM
HostingProvider : SRV:
RegistrarPool : xxxx
Enabled : True
SipAddress : sip:markv@xxxx.xx
LineURI : tel:+441785xxxxx;ext=xx46
EnterpriseVoiceEnabled : True
ExUmEnabled : False
HomeServer : CN=Lc Services,CN=Microsoft,CN=1:34,CN=Pools,CN=RTC
Service,CN=Services,CN=Configuration,DC=xxx,DC=xxx
DisplayName : Mark Vale
SamAccountName : markv
What I want to be able to do is literally output the line name in a row of my choice and then the corresponding value in another row or column of my choice. Or even in a paragraph etc, so Convertto-html wouldn't work for me in this instance