Search code examples
windowsnetwork-programmingunc

Tool for Measuring UNC Path Access Times


I'm being asked to write a tool that, given a UNC path and a set of credentials, will display the amount of time it took to access the directory. It then has to get any file in that directory, read it and display how long that took. This seems like something powershell was made for. If so, where can I learn more about network access time queries? If not, are there any other tools that will come close to what I need?


Solution

  • You can get directory access time this by using these two Powershell commands Measure-Command and Resolve-Path

    Measure-Command { Resolve-Path [Your Path Here] }