?
Solved

Rewrite line

Posted on 2013-10-23
1
Medium Priority
?
181 Views
Last Modified: 2013-11-07
Is it possible to rewrite a line from write-host?

For example I want to display progress, but rewrite it with the updated progress, so display something like:-
Process ======== 27%

Then update it to:-
Process ========== 33%

Instead of having to put the write on individual lines:-
Process ======== 27%
Process ========== 33%
0
Comment
Question by:tonelm54
1 Comment
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 2000 total points
ID: 39593674
Hi,
instead of using Write-Host use the cmdlet
Write-Progress
http://technet.microsoft.com/en-us/library/ff730943.aspx

HTH
Rainer
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Loops Section Overview
Screencast - Getting to Know the Pipeline

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question