PowerShell Tip - Get-ChildItem and Hidden Files

PowerShell Tip - Get-ChildItem and Hidden Files

Summary

We joined again in PowerShell Session to discuss daily operational issues and automating tasks. One of our client showed me the below error

Solution

We need to explore the parameters before executing the scripts. So PowerShell use help

help Get-ChildItem -Parameter Hidden

Code

Get-ChildItem -Path C:\bootmgr -Hidden -File

Output