Get-ChildItem : The specified path, file name, or both are too long..


get-childitem : specified path, file name, or both long..

looking see if group listed in users directory , failed:

ps c:\users\directory> get-childitem "p:\users\p\" -recurse | get-acl | select -expand access | export-csv c:\temp\fold
er_permission.csv
get-childitem : specified path, file name, or both long. qualified file name must less 260 characters, , directory name must less 248 characters.
@ line:1 char:14

is there way log users with crazy folders , continue script?

try this:

https://gallery.technet.microsoft.com/scriptcenter/powershellaccesscontrol-d3be7b83

supports filenames longer 260 characters (psv3 or higher)




Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

for loop and start-job from cmd.exe

Edit Group Policy

File Share Witness is not a valid File share path