1 2 3 4 5 6 7 8 9 10 11 12 |
function copia() { Get-Process > procesos.txt Compress-Archive -Path .\procesos.txt -DestinationPath aqui.zip -CompressionLevel Fastest -Force } $usuario = "juan" $pass = "juan" if($usuario -eq "juan" -and $pass -eq "juan") { copia } |