Quantcast
Channel: VMware Communities : All Content - VMware PowerCLI
Browsing all 16717 articles
Browse latest View live

starting multiple vm's at once

how can i leverage the start-vm cmdlet to allow me to start up 40 vm's with different names simultaneously? i was trying to do it this way i am connecting to the vcenter server and these vm's are...

View Article


Number of sockets with Windows VMs`

Hello folks, Could I ask yours assist in my problem with scripting? Goal: to count number of physical CPUs of ESXi hosts where Windows VMs are running. To do it across several vCenter servers. What I...

View Article


Export ESX Service Console iP, VM name, VM IP address, VM Mac address

Dear team, i want to fetch ESX Service Console iP, VM name, VM IP address, VM Mac address and export the same into .csv file , need power cli script for the same. USing pweorshell v.1 regardsMr VMware

View Article

Determining ownership of a host in a linked environmet

I am working with a set of linked VC's and connecting at the top level with connect-viserver.   When I pull all the hosts into an array like $list = get-vmhost,  where is the property off of $list.......

View Article

How to determine when a snapshot was last used?

We have a number of VMs which are used as development systems. Each has multiple snapshots, some of which are quite old. I can get a list of snapshot-related events for a VM, which will show when a VM...

View Article


How to export command output

Dear team, I have ran the following PowerCLI script and i want to export output in a file i.e txt or .csv how to do that (get-vm) | %{  $vm = $_  echo $vm.name----  $vm.Guest.Nics | %{    $vminfo = $_...

View Article

scripting advice for a total beginner please

I'm a beginner, trying to Get Started in VMware (lost in twisty maze of passageways...)     Using vSphere Client I can manually create VMs on our ESXi 5 host, producing an OVA file of our product for...

View Article

NEW vm migrate to different dvswitch and portgroup with powercli expanded

Hi all, I was wondering if it is possible to achieve this with a powercli oneliner within Vpshere 5? So far I got this: get-vds "dvold" | get-vm testvm | set-vds "dvnew" set-NetworkAdapter -NetworkName...

View Article


New vm migrate DVS/PG script

I'd like to expand this script with the possiblilty to type any vm useable for migration. I get this error Strings as pipeline input are not supported $strvm = Read-Host "Please enter the vm name" |...

View Article


PowerCLI script - New VM from template

Hi All I'm very new to power CLI scripting and in recent days I've been reading a lot of help in order to automate creation of a new VM based on the VM template.  Scripting that is not that hard, even...

View Article

Set syslog server settings across all ESXi5 hosts

Hello, I can set my ESXi5 syslog server settings from the CLI of each server using these commands below: esxcli system syslog config set --loghost='udp://indexer.domain.com:514'esxcli system syslog...

View Article

Query Licenses for VC , VCOPS, etc...

Hi there,  i am stuck witt this licensing report. How it is possible to make some reference from license key to VC or from key to VC ops. I was googling for few hours and did not find anything about...

View Article

Portgroup change based on hostname

I have been searching for something that enables me to run a check of all VM's and ensure they are on the correct portgroup.  The best I have so far is the script below.    Is there a more efficient...

View Article


Script to search datastores for delta "phantom" files

hi there, we having a problem with phantom snapshots filling up our lun'sis there a script out there to search throught the datastores to find these files?the manual way is listed here -...

View Article

Image may be NSFW.
Clik here to view.

Partition Tables

Hello, So from time to time i inspect some "vmfs Corruptions" - not often - but it happens. in the past i saved the infos with "sfdisk". but for esxi5  i don't find  sfdisk anymore ;(. Is theire now a...

View Article


Changed Properties after updating POwerCLI to V5

Hi, with PowerCLI Version4 i was using the follwoing script to analyze the overprovisioning of my Datastores:  $Storage = Get-View -ViewType datastore -Filter @{"Name"="CLUSTER_";"Summary.Type"="NFS"}...

View Article

PowerCLI script, post messages into Task pane?

Hi, Is there a way to post messages into Task pane in the vCenter?

View Article


Image may be NSFW.
Clik here to view.

I know what I want to do but how...

Basically I need to do some host verification.... I want to report specifics for all servers that meet a G7 spec. Specially, I need to know The server nameModel numberBuild numberMemory totalsBIOS date...

View Article

Need help Datastore details

Hi Friends, I need Scrip for getting Datastore name ,total storage and path(MMR,Round Robin, fixed).. Pls hep me Fnd's

View Article

get the used storage of a virutal machine via powercli

Is there a oneliner where I can get the USED Storage of a vm? example: server windc provisioned 100gb  used 55GB I want to type in something like:   get-vm  winDC |   get-usedstorageand I want to get...

View Article
Browsing all 16717 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>