Hey All<\/strong><\/p>\n
Probably really simple, but I’ve got this powershell code which suits my needs of listing all files \\ folders and create & modified dates perfectly<\/p>\n
Get-ChildItem -recurse | Select-Object -Property FullName, CreationTime, LastWriteTime > C:\\Angelas_files.csv<\/p>\n BUT… the FullName output is restricted - how can I get PowersShell to show the full length file path??<\/p>\n Dave<\/p>","upvoteCount":3,"answerCount":5,"datePublished":"2016-06-07T05:32:52.000Z","author":{"@type":"Person","name":"DaveM1980","url":"https://community.spiceworks.com/u/DaveM1980"},"acceptedAnswer":{"@type":"Answer","text":" Im guessing your file paths are being truncated ? If so thats because the default output for PS is table.<\/p>\n Try this code :-<\/p>\n Get-ChildItem -recurse | Select-Object -Property Path, FullName, CreationTime, LastWriteTime | Out-Gridview<\/p>\n This will display all data in a powershell grid - it will confirm your file path’s/names are not being truncated in powershell, rather in the output option.<\/p>\n So to resolve this, you can use the following command :-<\/p>\n Get-ChildItem -recurse | Select-Object -Property Path, FullName, CreationTime, LastWriteTime | Export-CSV C:\\Scripts\\Output\\angelas_files.csv<\/p>\n Ive added scripts\\output to your file path, simply because I hate seeing 101 scripts and outputs in the C drive - keep them organised so you can refer to them easily in the future Quick thought - you do have permissions to view the files properties?<\/strong><\/p>","upvoteCount":2,"datePublished":"2016-06-07T06:08:35.000Z","url":"https://community.spiceworks.com/t/get-childitem-without-limiting-fullname/501861/3","author":{"@type":"Person","name":"paulstokell","url":"https://community.spiceworks.com/u/paulstokell"}},"suggestedAnswer":[{"@type":"Answer","text":" Hey All<\/strong><\/p>\n Probably really simple, but I’ve got this powershell code which suits my needs of listing all files \\ folders and create & modified dates perfectly<\/p>\n Get-ChildItem -recurse | Select-Object -Property FullName, CreationTime, LastWriteTime > C:\\Angelas_files.csv<\/p>\n BUT… the FullName output is restricted - how can I get PowersShell to show the full length file path??<\/p>\n Dave<\/p>","upvoteCount":3,"datePublished":"2016-06-07T05:32:52.000Z","url":"https://community.spiceworks.com/t/get-childitem-without-limiting-fullname/501861/1","author":{"@type":"Person","name":"DaveM1980","url":"https://community.spiceworks.com/u/DaveM1980"}},{"@type":"Answer","text":" Restricted how?<\/p>\n See if this makes any difference.<\/p>\n Thank you guys!!!<\/p>\n Just a note, if ya’ll post code, please use the ‘Insert Code’ button. Thanks!
<\/p>\n
Get-ChildItem -recurse | Select-Object -Property FullName, CreationTime, LastWriteTime | Export-Csv C:\\Angelas_files.csv -NoTypeInformation\n<\/code><\/pre>","upvoteCount":1,"datePublished":"2016-06-07T05:52:37.000Z","url":"https://community.spiceworks.com/t/get-childitem-without-limiting-fullname/501861/2","author":{"@type":"Person","name":"psophos","url":"https://community.spiceworks.com/u/psophos"}},{"@type":"Answer","text":"
<\/p>","upvoteCount":0,"datePublished":"2016-06-07T07:35:16.000Z","url":"https://community.spiceworks.com/t/get-childitem-without-limiting-fullname/501861/4","author":{"@type":"Person","name":"DaveM1980","url":"https://community.spiceworks.com/u/DaveM1980"}},{"@type":"Answer","text":"
\n<\/p>","upvoteCount":1,"datePublished":"2016-06-07T13:00:47.000Z","url":"https://community.spiceworks.com/t/get-childitem-without-limiting-fullname/501861/5","author":{"@type":"Person","name":"Neally","url":"https://community.spiceworks.com/u/Neally"}}]}}