I am looking to create sub-folders within several different parent folders on a Network share. I have about 900 or so customer folders that I want to add a sub-folder to. I have the clients listed in an excel spreadsheet, which is not a CSV, is there an easy way to create these sub-folders?
New-Item -ItemType directory -Path "P:\Customer Folders\Customers A thru D\
I am using the above as directory creation but I don't want to have to use this command 900+ times. -recurse doesn't seem to do it as it gives me an error.
Any help would be appreciated.
ForEach($Folder in (Get-ChildItem 'P:\Customer Folders' -Directory)){New-Item -ItemType Directory -Path $Folder.FullName+"\Folder to create"}? Or maybe saving your excel sheet as a CSV and going from there?