No announcements
Found 2380720 threads
-
0 Votes
How to use 'Get-ChildItem' cmdlet to read files and folders but exclude some directories.
How about the parameter -Exclude?Answered | 7 Replies | 796 Views | Created by dydoria - Wednesday, February 20, 2019 12:34 PM | Last reply by LeeSeenLi - Monday, February 25, 2019 7:16 AM -
0 Votes
How do I specify an exclusion list to a Get-ChildItem -File cmdlet?
help get-childitem -par exclude Notice that the exclude parameter is an array of values $exclusions=Get-Content ...Answered | 6 Replies | 4841 Views | Created by SdeDot - Thursday, January 14, 2016 11:53 PM | Last reply by SdeDot - Friday, January 15, 2016 2:18 PM -
0 Votes
get-childitem to exclude a folder and its contents
I think there is some confusion.Answered | 14 Replies | 9816 Views | Created by Stack72 - Tuesday, January 31, 2012 2:31 PM | Last reply by mjolinor - Tuesday, January 31, 2012 8:24 PM -
3 Votes
Inconsistency between get-childitem -include and -exclude parameters
The Get-ChildItem cmdlet syntax is horrific for advanced use.Answered | 5 Replies | 3674 Views | Created by The Other Scott Bass - Monday, February 25, 2013 4:15 AM | Last reply by Jay Reaper - Tuesday, June 3, 2014 5:02 PM -
0 Votes
Exclude Sub Folders From Get-ChildItem
Microsoft technet You’re doing “something” wrong for it to read the directories as well.Answered | 14 Replies | 9050 Views | Created by how to stop particular update in AD 2012 r2server - Monday, February 12, 2018 9:46 AM | Last reply by how to stop particular update in AD 2012 r2server - Monday, February 12, 2018 9:53 PM -
2 Votes
Get-ChildItem to get Directories
Hi Kevin, Please try this as well Get-ChildItem -Path C:\mydata | ?Answered | 3 Replies | 1511 Views | Created by bakerkr94 - Wednesday, July 20, 2016 6:04 PM | Last reply by Kamruddin Ansari - Thursday, July 21, 2016 1:20 PM -
0 Votes
Get-ChildItem and Get-FileHash cmdlets.
Rename all files from a big folder will be slow...Answered | 18 Replies | 2520 Views | Created by dydoria - Monday, February 25, 2019 5:25 PM | Last reply by dydoria - Tuesday, February 26, 2019 3:50 PM -
0 Votes
How to exclude a sub folder and its contents using get-childitem
the folder itself, not any files or folders underneath it.Answered | 3 Replies | 5175 Views | Created by Dinesh Edvin - Monday, June 18, 2018 4:52 PM | Last reply by JS2010 - Tuesday, June 19, 2018 4:40 PM -
0 Votes
Can I Exclude A Single Folder Using Copy-Item?
This technique should work for most versions of PowerShell: Get-ChildItem d:\test -Directory -Recurse|?Answered | 10 Replies | 17252 Views | Created by jbear_alpha - Tuesday, June 28, 2016 3:28 AM | Last reply by Chris Ryan (UK) - Wednesday, June 29, 2016 10:03 AM -
1 Votes
PowerShell Get-ChildItem
Normally, Get-ChildItem cmdlet return IO.FileInfo and IO.DirectoryInfo array objects.Answered | 2 Replies | 22345 Views | Created by CyberGoo - Monday, July 1, 2013 9:41 PM | Last reply by Neothwin - Tuesday, July 2, 2013 6:23 AM -
2 Votes
Traverse folders that give Access denied with the Get-ChildItem cmdlet
(79,108,97,102|%{[char]$_})-join''Answered | 1 Replies | 3142 Views | Created by CesarTabares - Wednesday, November 16, 2016 6:48 PM | Last reply by BOfH-666 - Wednesday, November 16, 2016 6:56 PM -
4 Votes
Get-ChildItem - Include from array not returning files
I'm reading my include file types from a config file instead of coding it into the script, so it allows users a bit more flexibility for updating the config file ...Answered | 28 Replies | 2982 Views | Created by pmcm_83 - Wednesday, March 25, 2015 3:52 PM | Last reply by pmcm83 - Monday, March 30, 2015 2:49 PM -
1 Votes
PoweShell String and Get-ChildItem Comparison
It's because Get-ChildItem, when getting child items from a file system, outputs file system objects.Answered | 3 Replies | 465 Views | Created by Nikki4545 - Friday, November 18, 2016 12:29 AM | Last reply by Bill_Stewart - Friday, November 18, 2016 3:44 PM -
0 Votes
Using Get-ChildItem to list only file (and not folder) names
A better way to do it is to check for PsIsContainer property of objects returned from Get-ChildItem.Answered | 5 Replies | 81086 Views | Created by R. Keith Howard - Monday, November 7, 2011 2:50 PM | Last reply by Govardhan Gunnala - Thursday, May 9, 2013 3:42 PM -
0 Votes
Question about Get-ChildItem -recurse -filter
For example: get-help get-childitem -full <snip> -Exclude ...Answered | 6 Replies | 11786 Views | Created by Steve Lynch 2 - Wednesday, May 26, 2010 11:07 PM | Last reply by Steve Lynch 2 - Saturday, May 29, 2010 8:51 PM -
0 Votes
How to exclude always the same folder
Take a look at this link: http://technet.microsoft.com/en-us/library/bb808870.aspx Stéphane Edit: the script could be like ...Answered | 3 Replies | 7919 Views | Created by Rudi.Demarini - Wednesday, May 11, 2011 9:35 AM | Last reply by QuantumFly - Friday, July 22, 2011 12:22 PM -
2 Votes
Get-childItem issue when sending mail
Get-ChildItem may return multiple files, and you need some sort of loop to process them separately.Answered | 10 Replies | 1283 Views | Created by Ahmad Alkaysey - Thursday, January 23, 2014 8:59 PM | Last reply by Mike Laughlin - Thursday, January 23, 2014 9:35 PM -
3 Votes
Powershell - Scripting Help with Get-Childitem
I added some "initialization" code to fix that.Answered | 9 Replies | 3162 Views | Created by ClaireSim - Friday, July 24, 2020 2:32 PM | Last reply by Rich Matheisen [Ex-MVP (retired)] - Tuesday, July 28, 2020 7:09 PM -
1 Votes
Using Get-ChildItem to set file count variable not working
I had tried to clean up the script when you asked about the Directory variable and must have deleted the wrong one in my haste.Answered | 6 Replies | 2896 Views | Created by nitnylion93 - Friday, January 24, 2014 7:21 PM | Last reply by nitnylion93 - Friday, January 24, 2014 8:26 PM -
0 Votes
Get the largest video files except few directories
There are some exclusions like my boss profile directory and few others (that is what is in $exclusion), manually written when prompted.Answered | 6 Replies | 1296 Views | Created by Roman Vins - Monday, May 20, 2013 12:58 PM | Last reply by Roman Vins - Tuesday, May 28, 2013 7:27 AM - Items 1 to 20 of 2380720 Next ›
No announcements