Yesterday, at the end of my post, I mentioned that displaying information on the screen can slow down processing time. It is true. Here is a simple test. First of all, execute this code in the ISE Function Test-Information { [ cmdletbinding () ] Param () For ( $X = 0 ; $X -lt 1000 ; $X ++ ) { Write-Information -MessageData "The value of X is $X " } Write-Information -MessageData "Script Complete" -InformationAction Continue } Next execute this line of code. PS C:\> Measure-Command -Expression {Test-Information} Script Complete Days : 0 Hours : 0 Minutes : 0 Seconds : 0 Milliseconds : 186 Ticks : 1860662 TotalDays : 2.15354398148148E-06 TotalHours : 5.16850555555556E-05 TotalMinutes : 0.00310110333333333 TotalSeconds : 0.1860662 TotalMilliseconds : 186.0662 Take note of the milliseconds
Welcome to the blogsite of MCTExpert. I am a Microsoft Certified Trainer. Here you will find the real questions that are asked to me by my students.