- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the use of -Force parameter in Get-ChildItem in PowerShell?
To display files along with hidden files, you need to use –Force parameter.
Command
Get-ChildItem D:\Temp\ -Force
Output
If you see the above output, hiddenfile.xlsx is the hidden file and same can be identified with the mode where –a-h—attribute of the file.
You can also use this parameter with –Recurse or –Depth.
Get-ChildItem D:\Temp\ -Recurse -Force
- Related Articles
- How to use the -recursive parameter in Get-ChildItem using PowerShell?
- What is Get-ChildItem cmdlet in PowerShell?
- How to use Depth pararmeter in Get-ChildItem PowerShell?
- How to use the wildcard character (*) in Get-ChildItem in PowerShell?
- What is the use of Passthru parameter in Stop-Process in PowerShell?
- What are the parameters supported by Get-ChildItem in PowerShell?
- How to use Get-ChildItem in PowerShell to filter a specific extension?
- How to get the readonly files using Get-ChildItem in PowerShell?
- How to get the system files using the Get-ChildItem in PowerShell?
- How to control recursion in Get-ChildItem in PowerShell?
- Which properties are supported by the Get-ChildItem in PowerShell?
- How to use the ErrorAction parameter in PowerShell?
- What is the use of Get-Process command in PowerShell?
- Which methods are supported by Get-ChildItem in PowerShell?
- What is the use of the Get-Error cmdlet in PowerShell?

Advertisements