Para obtener información más detallada del get-vm commandlet, podemos mostrar la información completa con el comando
To get more verbose information from the get-vm commandlet, we can show the full information with the command
Para rellenar el archivo de texto, podemos ejecutar nuestro Get-VM commandlet seleccionando las propiedades que queremos, luego canalizamos eso a un archivo de texto.
To populate the text file, we can run our Get-VM commandlet selecting out the properties we want, then pipe that to a text file.
Ahora, regresemos información útil específica del Get-VM commandlet.
Now, let's return specific useful information from the Get-VM commandlet.
Incluso podemos canalizar el resultado del comando anterior en el Start-VM commandlet.
We can even pipe the result of the above command into the Start-VM commandlet.
Podemos llamar a la máquina virtual por nombre y luego usar el Stop-VMGuest commandlet que inicia un apagado del sistema operativo invitado.
We can call the VM by name and then use the Stop-VMGuest commandlet which initiates a guest operating system shutdown.
El otro día estaba trabajando en los Hands on Labs del SDK Azure y hay uno que tiene que ver con una lista de tareas que un commandlet PowerShell bastante práctico tenía que preparar.
I was doing the Hands on Labs from the Azure SDK the other day and one of them involves a task list that a very handy PowerShell commandlet is supposed to fill.