Soldato
I'm trying to split a string array into separate and new objects, for instance;
Produces;
What I want to do is split out the string array into separate objects;iterating however many items are in the string array; for instance as follows;
Breaking the string array into a single string with a space delimiter via; (I know this is spurious and unnecessary)
Gets me to here;
It's the final bit which I'm struggling with. Any help or pointers would be greatly appreciated.
Cheers, Paul.
Code:
Get-CMDLet Fooapp | AppName, Accounts
Code:
AppName: Fooapp
Accounts: {FooaccountA, FooaccountB, FooaccountC}
Code:
AppName: Fooapp
Accounts1: fooaccountA
Accounts2: fooaccountB
Accounts3: fooaccountC
Code:
Get-CMDLet <variable> | AppName, @{Name='Accounts';Expression={[string::join(" ",($_.accounts))}}
Code:
AppName: Fooapp
Accounts: FooaccountA FooaccountB FooaccountC
Cheers, Paul.