>$a = 1,2,3
>$b = 'x','y','z'
>$c= $a + $b
>$c
1
2
3
x
y
z
What I want is:
1x
2y
3z
Furthermore, I want to export this into csv file with two colums (1,2,3) and (x,y,z).
Thanks!
Search found 3 matches
- Thu Jan 11, 2018 6:32 am
- Forum: PowerShell
- Topic: How to combine multiple arrays to csv file
- Replies: 1
- Views: 1364
- Tue Jan 09, 2018 8:42 am
- Forum: PowerShell
- Topic: Unable to display cpu name property on multiprocessor server
- Replies: 3
- Views: 1719
Re: Unable to display cpu name property on multiprocessor server
Thanks! I see my script works in PS version 4, but not in version 2. Out of curiosity, do you know if it would work in version 3?
Thanks again!!
Thanks again!!
- Tue Jan 09, 2018 7:08 am
- Forum: PowerShell
- Topic: Unable to display cpu name property on multiprocessor server
- Replies: 3
- Views: 1719
Unable to display cpu name property on multiprocessor server
Hi, I'm trying to run a simple script that returns cpu name and description. The script works fine when the computer has a single processor, but returns nothing if computer is multiprocessor. Here is the simple script: >$cpu = get-wmiobject -computername server1 -class win32_processor >$cpu.name >In...