Hi all,
I'm fairly new to Powershell and am trying to find a way to list directories that have '2005' in the directory name and output the list to CSV. This is where I'm heading so far:
gci -path D:\Shares\General\Clients-2 -include *2005*-directory | export-csv 2005.csv
So far it is just generating the CSV file but with no contents. I know that there are directories with '2005' in them and also other directories that are just called '2005'.
As stated, I'm still fairly new to Powershell so any help is appreciated.
Thanks in advance,
Dean.