I changed same actually but it doesnt work. $rootfolder = Get-Item -Path $FolderPath | Select-Object Name,FullName,LastWriteTime,Length $ | Out-File $ExportPath\AccessDenied.txt -Append $Folders = Get-ChildItem -Path $FolderPath -Directory | Select-Object Name,FullName,LastWriteTime,Length -ErrorAction Silentl圜ontinue Write-Warning “Checking permissions $($FolderPath)” Hm ran it on my laptop since I don’t have any file share to connect to at the moment and it returned the root and the folders, it doesn’t get folders more than one level down though.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |