User Tools

Site Tools


powershell:recopilar_archivos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
powershell:recopilar_archivos [2026/10/01 14:33] – created adm.wikipowershell:recopilar_archivos [2026/10/01 14:35] (current) – adm.wiki
Line 1: Line 1:
-==Recopilar Archivos con Powershell==+====== Recopilar Archivos con Powershell ======
  
-<code powershell>+ 
 +<code powershell collecfile.ps1>
 $inventario = foreach ($file in Get-ChildItem "C:\Users\Admin" -File -Recurse) { $inventario = foreach ($file in Get-ChildItem "C:\Users\Admin" -File -Recurse) {
  
Line 16: Line 17:
 } }
 $inventario | Where-Object { $_.SizeMB -gt 100} | export-csv .\resultados.csv $inventario | Where-Object { $_.SizeMB -gt 100} | export-csv .\resultados.csv
-<code/>+</code>
powershell/recopilar_archivos.1790858019.txt.gz · Last modified: by adm.wiki