Questions tagged [powercli]

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

7 questions
1
vote
1 answer

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 before?
1
vote
1 answer

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: VMWare.VimAutomation.Core\Connect-VIServer -…
Malte
  • 13
  • 1
  • 3
1
vote
1 answer

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 "MyPreProdServer" -VM $Source_VM -VMHost…
locobastos
  • 35
  • 7
0
votes
2 answers

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 this: ÿþ Get-Module -Name VMware* -ListAvailable |…
0
votes
1 answer

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.linux1 N3.linux2 However, then I use…
mahmood
  • 1,225
  • 7
  • 25
  • 38
0
votes
1 answer

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 this executable I get a terminal (that is not…
0
votes
1 answer

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 merge these scripts but I'm new on PowerCLI and…
Jo Shepherd
  • 785
  • 5
  • 20
  • 37