1 2 3 4 5 6 7 | # Crear un archivo de 10 MB corrupto $out = new-object byte[] (1024*1024*10) (new-object Random).NextBytes($out) [IO.File]::WriteAllBytes('fichero.rar', $out) Get-ChildItem .\fichero.rar |
1 2 3 4 5 6 7 | # Crear un archivo de 10 MB corrupto $out = new-object byte[] (1024*1024*10) (new-object Random).NextBytes($out) [IO.File]::WriteAllBytes('fichero.rar', $out) Get-ChildItem .\fichero.rar |