October 25th, 2012

PowerTip: Use the Force Switch in PowerShell

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.