
How to use the Get-ChildItem cmdlet in PowerShell?
Sep 30, 2025 · Do you need to get a listing of all the files and folders in a directory with PowerShell? The Get-ChildItem PowerShell cmdlet, or gci for short (other aliases: Dir, LS) is your go-to command. …
powershell - How do I get only directories using Get-ChildItem?
Jun 21, 2010 · I'm using PowerShell 2.0 and I want to pipe out all the subdirectories of a certain path. The following command outputs all files and directories, but I can't figure out how to filter out the files...
Get PATH environment variable in PowerShell - Stack Overflow
Aug 14, 2019 · Get-ChildItem env:path I want to get the complete path, but get only a very small part of it. How much I get depends on the width of the PowerShell window, e.g.
Working with registry entries - PowerShell | Microsoft Learn
Jul 31, 2024 · This article discusses how to deal with registry entries using PowerShell.
How can I exclude multiple folders using Get-ChildItem -exclude?
The documentation isn't clear on this, but Get-ChildItem -Recurse -Exclude only matches exclusion on the leaf (Split-Path $_.FullName -Leaf), not the parent path (Split-Path $_.FullName -Parent). …
PowerShell Documentation - PowerShell | Microsoft Learn
PowerShell Editions + Tools Available editions, tools, and technology that supports PowerShell
Running Get-ChildItem on UNC path works in Powershell but not in ...
I am writing a batch file that executes a Powershell script that at one point loops items with UNC paths as attributes and uses Get-ChildItem on those paths. In a minimal version, this is what is
How to exclude list of items from Get-ChildItem result in powershell ...
I want to get list of files (actually number of files) in a path, recursively, excluding certain types:
How to Find Any File on Windows Like a Linux User (using Windows ...
Mar 25, 2026 · The second command, at the bottom of the image, will export the results to the other file without showing them in PowerShell: You'll see the results from second command after opening the …
powershell - How do I get get-childitem to filter on multiple file ...
Set-Location c:\topLevel gci *.xsl, *.xslt -Recurse If you want to specify a path other than the current location, or search multiple locations, create a couple of string arrays and use Join-Path to create an …