Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

get data on same line

$
0
0

I have this code.

 

 

$OSDArchitecture = "OS Architecture"

$GetInfo1 = (get-ItemProperty hklm:\SOFTWARE\Microsoft\MPSD\OSD).OSDArchitecture 

Echo $OSDArchitecture  $GetInfo1 >> "c:\windows\MGH\BuildLog.txt"

 

It works but when it writes to my .txt file it write the data line this.

OS Architecture

x86

I want it to write like this:
OS Architecture  x86
how do you format that?

 


Viewing all articles
Browse latest Browse all 8583

Trending Articles