Questions tagged [powercli]

PowerCLI is the name of a collection of Powershell modules used to manage VMWare environments.

Filter by
Sorted by
Tagged with
1 vote
1 answer
272 views

Is it possible to script within the vsphere web client?

I've been attempting to write a script that will create multiple vm's from a given template. But I haven't found much documentation on scripting within the vSphere web client, has anyone done this ...
Dr.Sys's user avatar
  • 11
1 vote
1 answer
2k views

Disconnect NIC on powered off VM

I'm using ESXi 6.0 and PowerCLI. I've created a clone of a production VM: $Source_VM = Get-VM -Name "MyProductionServer" $Target_VMHost = Get-VMHost -VM $Source_VM $Cloned_VM = (New-VM -Name "...
locobastos's user avatar
1 vote
1 answer
4k views

What are the necessary Privileges to connect via PowerCLI to a VCenter?

First off: Using an Administrator account works, but it is not desired. We have a VM which needs to be reset once a week. We added a ScheduledTask to the VCenter Instance which runs these three lines:...
Malte's user avatar
  • 13
0 votes
1 answer
96 views

Tokenizing array of strings in powershell

I use this code to retrieve the list of VMs from vSphere. [string]$arrayVM = (Get-VM | Select-Object -Property Name).Name Write-Host($arrayVM) It is fine as I get the following output N1.windows1 N2....
mahmood's user avatar
  • 1,275
0 votes
2 answers
859 views

How to loop through VMs without a specific tag with powercli

I'm trying to export a CSV file that has a list of all VM's in a cluster that doesn't have a specific tag I'm using for rightsizing. However, the list CSV isn't populating with anything other than ...
witchkinkofAngmar's user avatar
0 votes
1 answer
228 views

PowerCLI Get VMs those fit some conditions

I'm trying to get our some Linux distros from vCenter by using PowerCLI. But I don't want to get Appliance VMs. So I have 2 different successful PowerCLI scripts those can find these machines. I want ...
Jo Shepherd's user avatar
0 votes
1 answer
788 views

How to install PowerCLI permanently on a computer with no internet

I downloaded the PowerCLI from VMware's website. https://my.vmware.com/web/vmware/details?downloadGroup=PCLI650R1&productId=614 Once downloaded their is an executable PowerCLI.exe. If I run ...
Hack_Hut's user avatar