From 2c3aacf8727f31d29033181805c38b99a8a1e14d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Here=C3=B1=C3=BA?= Date: Sun, 29 Jun 2025 06:48:47 -0300 Subject: [PATCH] where-object: add Spanish translation (#16936) --- pages.es/windows/where-object.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pages.es/windows/where-object.md diff --git a/pages.es/windows/where-object.md b/pages.es/windows/where-object.md new file mode 100644 index 0000000000..7b2c233f2e --- /dev/null +++ b/pages.es/windows/where-object.md @@ -0,0 +1,17 @@ +# Where-Object + +> Selecciona objetos de una colección basándose en los valores de sus propiedades. +> Nota: Este comando solo puede utilizarse a través de PowerShell. +> Más información: . + +- Filtra alias por su nombre: + +`Get-Alias | Where-Object -{{Propiedad}} {{Nombre}} -{{eq}} {{nombre}}` + +- Lista todos los servicios que están actualmente detenidos. La variable automática `$_` representa cada objeto que se pasa al cmdlet `Where-Object`: + +`Get-Service | Where-Object {$_.Status -eq "Stopped"}` + +- Utiliza múltiples condiciones: + +`Get-Module -ListAvailable | Where-Object { $_.Name -NotLike "Microsoft*" -And $_.Name -NotLike "PS*" }`