I am running a script that checks for mdf and ldf files on all of our SQL Servers and the script gets about halfway through before it hangs. It hangs at the line:[code="other"]Test-Path $fullPath[/code]Where $fullPath is the complete file path. Like I said, the script works perfectly fine and it tests half of the file paths in the list but after about half way, it will hang here.Could this be something to do with the file it gets hung on or the path? I have taken this snippet out of the script and executed it with the path that the script keeps getting hung on and it returned true within milliseconds.Please note that it hangs on the same file/same spot every time.
↧