Welcome › Forums › General PowerShell Q&A › Need an idea on how to start (Solved!)
This topic contains 3 replies, has 3 voices, and was last updated by
I have a list of fullnames of some folders, somehting like:
And I have another list showing only some of those folders which I have access to:
I wanted to create a table like this:
But I'm lost on how to start that...
I think something like this should get you close — note: it is untested code
$AllFolders = Get-Content -Path C:\Temp\AllFolders.txt
$CheckFolders = Get-Content -Path C:\Temp\CheckFolders.txt
foreach ($f in $AllFolders)
Folder = $f
Visible = $f -in $CheckFolders
Great! Thanks a lot! Sorry for not replying sooner, it was a big holiday here in Brazil.
How about using Compare-Object?
The topic ‘Need an idea on how to start (Solved!)’ is closed to new replies.