Ever wondered how long your script takes to run? Then use a stopwatch... or give "Measure-Command" a try :)
Measure-Command -Expression { Test-Connection -ComputerName Localhost }
That is just a quick example how it can be used. You can also run it against a complete script or function. This cmdlet is also very useful if you want to optimize your scripts and want to check which approach is faster.
Keine Kommentare:
Kommentar veröffentlichen