Food for thought

Script modification and efficiency.

Running a script against a single computer is not like runnning the same script against a thousand …..obviously.

I am slowly re-writing the code on every script i made , towards this direction….

  • ping a server before you connect.
  • add one line of code at the beginning of every script and one at the end in order to count running time.
  • evaluate every commandlet or technic i am using (this comes with experience)…for example: it is faster to directly use test-connection than getting the results of the test-NetConnection into a variable and then check the property of the variable if it is true…….