<data:blog.pageTitle/>

This Page

has moved to a new address:

https://vmvirtual.blog

Sorry for the inconvenience…

Redirection provided by Blogger to WordPress Migration Service
BIOLNX

BIOLNX

giovedì 5 marzo 2020

Powercli to export VM and vGPU

Get-VM | Select-Object Name,NumCPU,MemoryMB,Powerstate,@{Name="vGPU";Expression={$_.ExtensionData.Config.Hardware.Device.Backing.vgpu}} | Export-CSV <file>

Etichette: , , ,

giovedì 23 gennaio 2020

Copy file to VMware Datastore using Powercli

https://kb.vmware.com/s/article/2001041

#Mi collego all'Host ESXi dove devo copiare la ISO
Connect-ViServer <hostname>
#Visualizzo l'elenco dei datastore
Get-Datastore
#Seleziono il datastore che mi interessa
$datastore = Get-Datastore "<nome del datastore>"
#Eseguo il mount del PSDrive sotto ds:
New-PSDrive -Location $datastore -Name ds -PSProvider VimDatastore -Root "\"
#Lancio la copia
Copy-DatastoreItem -Item c:\......\Windows2016.iso -Destinatiom ds:\ISO\

Etichette: , , , ,

sabato 18 gennaio 2020

Update PowerCLI on Powershell


Get-PowerCLIVersion

Update-Module VMware.PowerCLI

Etichette: , , , ,