Preguntas etiquetadas con powershell

121
Cómo enumerar todas las propiedades de un objeto de PowerShell

Cuando miro la clase Win32_ComputerSystem , muestra un montón de propiedades como Status, PowerManagementCapabilitiesetc. Sin embargo, cuando estoy en PowerShell hago lo siguiente, solo obtengo un par: PS C:\Windows\System32\drivers> Get-WmiObject -Class "Win32_computersystem" Domain :...

120
Impresión de propiedades de objeto en Powershell

Cuando trabajo en la consola interactiva si defino un nuevo objeto y le asigno algunos valores de propiedad como este: $obj = New-Object System.String $obj | Add-Member NoteProperty SomeProperty "Test" Luego, cuando escribo el nombre de mi variable en la ventana interactiva, Powershell me da un...

114
Ruta a Powershell.exe (v 2.0)

¿Dónde se encuentra Powershell (versión 2.0)? ¿Cuál es la ruta a Powershell.exe? Tengo Windows Server 2008 y Powershell instalados. Cuando miro esta carpeta: PS C:\Windows\System32\WindowsPowerShell> dir Directory: C:\Windows\System32\WindowsPowerShell Mode LastWriteTime Length Name ----...

113
¿Cómo se hace una 'pausa' con PowerShell 2.0?

OK, lo estoy perdiendo. PowerShell me está molestando. Me gustaría que apareciera un cuadro de diálogo de pausa, pero no aparecerá. PS W:\>>> $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") Exception calling "ReadKey" with "1" argument(s): "The method or operation is not implemented." At...