Gets the files and folders in a file system drive.
Functions: | |
Type: | |
Toolsets: |
Get-ChildItem -LiteralPath '\\?\UNC\FS1.ad.bitsadmin.com\IT' -Depth 25 -Force | ForEach-Object { [PSCustomObject]@{Name=$_.Name; Mode=$_.Mode; Length=$_.Length; LastWriteTime=$_.LastWriteTime.ToUniversalTime().ToString('yyyy-MM-dd HH:mm:ss'); FullName=$_.FullName.Replace('\?\UNC','') } } | Export-Csv -Encoding UTF8 -NoTypeInformation FS1_IT.csv
Usecase
Microsoft.PowerShell.Management