tags:

views:

54

answers:

2

I want my powershell script to print something like this:

Enabling feature XYZ......Done

The script looks something like this:

Write-Output "Enabling feature XYZ......."
Enable-SPFeature...
Write-Output "Done"

But Write-Output always prints a new-line at the end so my output isn't on one line. Is there a way do do this?

+5  A: 

Write-Host -NoNewline "Enabling feature XYZ......."

Shay Levy
Nice one, thanks!
Amit G
A: 

Write-Host is OK, but what if you want to redirect output to a file?