Questions tagged [powercli]

VMware vSphere PowerCLI is a set of Windows PowerShell snap-ins that provide cmdlets to automate vSphere and vCloud virtual environments.

VMware vSphere PowerCLI contains snap-ins of cmdlets based on Microsoft PowerShell for automating vSphere and vCloud administration. It provides C# and PowerShell interfaces to VMware vSphere and vCloud APIs.

(VMware vSphere PowerCLI Cmdlets Reference)

PowerCLI provides hundreds of cmdlets "for managing, monitoring, automating, and handling lifecycle operations for vSphere and vCloud Director components" (VMware vSphere PowerCLI User's Guide).

References:

540 questions
-1
votes
1 answer

Create VM snapshots using power CLI with no memory quiesce

I need to have a script to run in vcenter power CLI for creating VM snapshots. Below is the requirement.I am new to scripting.Can someone please help me to do this. server names should be taken from a text/csv file. snapshot should be created with…
Satheesh
  • 1
  • 1
-1
votes
1 answer

Is there a more complete VMWare PowerCLI reference?

I'm trying to use the VMWare PowerCLI v6.0 to do some automated things. I have found the installed and online version of the cmdlet documentation and for the most part it tells you very simple information about the commands, like the parameters,…
vane
  • 2,125
  • 1
  • 21
  • 40
-1
votes
1 answer

Powershell scripts will always return zero result. while the same script will work well if i call it from the Powershell window

I have installed VMware PowerCLI inside ym application server, and if i directly write the following inside windows powershell i will get the resutl i am looking for :- PS C:\Windows\system32> add-pssnapin VMware.VimAutomation.Core; PS…
John John
  • 1
  • 72
  • 238
  • 501
-1
votes
1 answer

How can i get a vSphere VM's workgroup and list of users?

I am trying to do so both via the API ("VirtualMachine" class, in C#) and via power cli commands - without any luck. Can someone please help me?
Nisim Naim
  • 151
  • 1
  • 15
-1
votes
1 answer

PowerCLI Issue With Returned Value for Hard Drive Count

So here's the fun times: I have an array with virtual server values in columns, etc. There's a ForEach loop that each server goes through, and I'm trying to weed out servers with a 0 count for Disks. Here's my syntax: $VMInfo.Disks = Get-HardDisk…
Nate
  • 3
  • 2
-1
votes
1 answer

PowerCLI Scripted deployment of static IP VMs - erroring

Thought what I was trying to do was simple. I have my own /25 subnet and Vmware cluster and I want to deploy a bunch of Windows 2012r2 VMs from a good template. My hosts will be basically host10 through host50 and the IP address will be…
Charlie Baum
  • 107
  • 1
  • 3
  • 15
-1
votes
1 answer

VMware Converter Automation

I am looking for a way to automate a conversion process of true image backup (.tib) files to Virtual Machines. I have been looking around VMware for a way to implement this but have left myself really unsure of what I would need. The reason for this…
scapegoat17
  • 5,509
  • 14
  • 55
  • 90
-1
votes
1 answer

Passing multiple variables to parameter

Syntax: New-VirtualSwitch [-VMHost] [-Name] [[-NumPorts] ] [[-Nic] String[]] I am using the above cmdlet to add a new vSwitch in vSphere, where my knowledge lacks is how to use four checkbox that represent four NICs and when checked are…
Shamza
  • 13
  • 3
  • 8
-2
votes
1 answer

What does the CLI means in PowerCLI?

PowerCLI is a scripting tool used for VM automation and creation. Is there a way to use this scrip to automate and create VM? May I also know what is silent installation and how does it work?
user448402
  • 159
  • 1
  • 18
-2
votes
1 answer

PowerCli Script for automating Power Replication jobs

I am looking for a script which will do replication using VRA for a big VMFarm (Version5.5) which has around 50k ++ RHEL/Centos/Windows (multiple versions). Also i am planning to do migration of a small portion using VMconverter. Can anyone help in…
hari
  • 1
-2
votes
2 answers

Fastest way to retrieve a list of every VMs DNS Host Name?

I would like to find the fastest and simplest way to get a list of every VMs DNS Host Name on the system. To then use this list of data for other purposes. Thanks for the help :)
Michael Johnston
  • 718
  • 2
  • 11
  • 25
-2
votes
1 answer

Invoke-VMScript - PowerCli - compatibility

I wonder what guest OS are compatible to the invoke-VMScript cmdlet. The reason I'm asking: I plan to include VMWare in my (automated) test environment. What I read so far: Windows Server 2008 Windows Server 2012 A Fedora-Version I would like to…
restless1987
  • 1,558
  • 10
  • 16
-2
votes
1 answer

PowerShell using hashtable

The below scripts works, but it takes a long time to complete the job. Can somebody help me to convert this script to faster way. $servers = Get-Content Servers.txt $TCount = $servers.Count $count = 1 foreach ($server in $servers) { …
rpr
  • 111
  • 2
  • 5
  • 16
-2
votes
1 answer

Restart-service WinRM remotely without yes/no

How can I Restart-service remotely with WinRM, without a yes/no confirmation on a remote computer in a workgroup?
-3
votes
1 answer

PowerShell Connect-VIServer with multiple potential credentials

I am work in a data center and am currently working on creating a script that will connect to multiple esx hosts. Unfortunately, the username/passwords are mostly the same but some of them are different. I want to check for a failed connection,…
chwnelson
  • 1
  • 1
1 2 3
35
36