PowerTip: Use the Force Switch in PowerShell

Doctor Scripto

Summary: Many times Windows PowerShell cmdlets display additional information when using the Force switch.

Hey, Scripting Guy! Question How can I display hidden and system files when using Windows PowerShell?

         Hey, Scripting Guy! Answer Use the Get-Item or Get-ChildItem cmdlet and use the Force switch—this works with other cmdlets as well.

                           Get-ChildItem -force

0 comments

Discussion is closed.

Feedback usabilla icon