1 line Powershell performance script

3 years ago
55

If you want to see a Network person fall under their desk in the fetal position, ask them to write a script.

Scripts can get complicated since you have to learn a programming language only to find out afterwards that you learned the ‘old not cool anymore’ language. Then you have to document the script using comments and flowcharts, etc…

Ok, let me show you a 1 command Powershell performance script that you can write to impress your friends, family and maybe your colleagues. The command is Measure-Command {command}. And here is an example from my video Measure-Command {xcopy 113MB h:\*.* /Y}. Its pretty straightforward, basically Powershell will record how long it takes to complete whatever command you provide. In the previous example, it was a xcopy from my local drive to my network drive....
read full article at https://www.networkdatapedia.com/ when its posted

Loading comments...