Senin, 08 Agustus 2022

Scripting List file or folder using windows PowerShell

Just Got Instruction from IT Head Quarter to screening File on all share drive in Batam Site, the screening file using Power Shell command. Seem this can use also for auditing any kind of file or folder inside the drive

1. Open Windows PowerShell 


2. Type where folder or drive you want to check, example 

     > Type : G  then enter (G is Drive)

     > Type : cd 17-form (17-form is directory or folder)

     > Type : Get-Childitem -recurse | select Directory,Name,LastWriteTime,CreationTime,LastAccessTime | Export-Csv -path .\list.csv (List is name saved file in csv format ) then enter

3. and list.csv file will generate as bellow

 

4. list.csv file on folder 17-form


Tidak ada komentar: