PowerShell’s Get-ChildItem needs to pay attention to -Include, -Path and Reparse Points mines

213847699-195c2255-afeb-43ad-9f69-b75afc

I have always felt that Windows PowerShell is a command-line execution environment that people love and hate. Its strong typing advantages are indeed good and irresistible, but the complexity and version compatibility of its execution environment are different from those of various Cmdlets. The wonderful design, every time you encounter it, it will make you feel confused and refreshed, and you can’t help but be amazed. Today I will share a magical situation I encountered when I wrote an article yesterday, that is, the Get-ChildItem cmdlet we commonly use should pay attention to the various usage combinations of -Path and -Include and -Recurse , as well as a Reparse Points problem.

continue reading

This article is transferred from https://blog.miniasp.com/post/2023/01/21/PowerShell-Get-ChildItem-Include-Path-Recurse-Reparse-Points-Issues
This site is only for collection, and the copyright belongs to the original author.