It works for me.
Have you run your script in a debugger and traced the execution and the content of the variables? At what point does a variable not contain an expected value?
Use the Code Sample editor when you post code!
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have the below script that needs to check status code and provide response time but I am not getting response time of the suburls
It works for me.
Have you run your script in a debugger and traced the execution and the content of the variables? At what point does a variable not contain an expected value?
Use the Code Sample editor when you post code!
Hi there,
You can use the Measure-Command
The Measure-Command cmdlet runs a script block or cmdlet internally, times the execution of the operation, and returns the execution time.
-------------------------------------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept it as an answer--