Hi,
I am using the powershell code below to get a list of folders and subfolders from a share. This is just showing the foldername. Is there a way to show the full path? ie\\Server\Share\Folder...
I would like to go 1 level deep and have output similiar to this?
\\Server\Share1\Folder1
\\Server\Share1\Folder2
\\Server\Share2\Folder1
\\Server\Share2\Folder2
Can this be modified to accomplish this?
Get-ChildItem \\Server\Share| Where { $_.PSIsContainer } | Foreach {Get-Childitem $_.FullName} | Where { $_.PSIsContainer } | Select-Object name