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

delete clones older than x days

Hi Guys, I am trying to create a ps script that will be used to clone a VM and as part of the script only keep two instances of the clones. This is the code i have at the moment but i am struggling to...

View Article


How to schedule vmare healh check report...

Dear Team, I just want to know how to automate "Health chck report.ps1". automate execution of "Health Check report.ps1"  and send report on email. regardsMr VMware

View Article


Windows 2008R2 sysprep Error [msoobe.exe] Failed to install product key

I'm cloning Windows 2008R2 with PowerCLI on ESXi 5.0. On the clone, setuperr.log in C:\Windows\Panther\UnattendGC has the following error:2013-02-01 15:49:13, Error [msoobe.exe] Failed to install...

View Article

Find the Desktops a user is assigned to in VMware View via PowerCLI

Basically I am looking to do what the Subject says,  My only addition is the user running the script may not know what Pool the desktop is currently in.  I am looking to automate the replacement of...

View Article

Cold migration of Vms from one Datacenter to another

I am trying to cold migrate VMs from a host in DatacenterA to a host in DatacenterB both datacenters are managed by the same Vcenter server. I have followed the RelocateVM method from LucD and...

View Article


New-VIProperty Config.Host.Value InvalidProperty

vCenter 4.1 Update 2PowerCLI 5.1 Release 1 I can successfully retrieve VMHost's IDs via: Get-VMHost | Select Name,@{N='VMHostID';E={$_.ExtensionData.Config.Host.Value}} I can also (appear) to...

View Article

How to manage VM Ware Infrastructure Using Wnidows Power Shell

Hi, can any one post link of any pdf/blog etc that can teach How to manage VM Ware Infrastructure Using Wnidows Power Shell, from basics. If anyone have link for this pdf or pdf itself, please share....

View Article

vmotion -- dry run through powercli

greetings, folks  --- my Requirement:  in order to make sure that all VMs actually get migrated off the host when I place the host in maint mode -- I would like a validation check across all the VMs in...

View Article


Answer file for host profile questions

All,  Looking at creating a hash table from the powercli reference book (luc/alan's) but having some issues. I am running  this command to get the hash table: $AdditionalConfiguration =...

View Article


vmnic link status

Hi, I need a powercli script which will check the link (up or down) and speed (1000 MB) of each vmnic connected to each vswitch of each esx server in our environment. Please help.

View Article

vSphere PowerCLI 4.1.1 Poster has landed.....

Folks, Latest version of the world famous PowerCLI Poster. Special thanks to our PowerCLI VIP Members and the PowerCLI engineering team. New Features: - New commandlets for 4.1.1 highlighted in blue-...

View Article

vm - get-NetworkAdapter

How can I modify this to only show me vm's on specific NetworkNames?This little script gives me the vms on all vlans.   eg: vlan564,vlan566,vlan567  get-cluster MYCLUSTER  |Get-VM | Get-NetworkAdapter...

View Article

Best Practices Regarding Invoke-VMScript

We're using Invoke-VMScript to run batch scripts on our VMs in a blocking manner. Some of these scripts take ~1 hour to run. We're running into issues where randomly we'll see Power-CLI disconnects or...

View Article


Get System Boot Device

I know you can get the system boot device using ESXCLI like this: esxcli system boot device get   Boot Filesystem UUID:   Boot NIC: 01-23-45-67-89-ab-cd   Stateless Boot NIC: or you can do ESXCLI via...

View Article

remove-vm doesn't delete from inventory

Hi Experts, I'm trying to remove a vm from the host inventory as well as disk but it fails to delete from the inventory. So when I try to re-create the vm with the same name it fails with VM name...

View Article


Is there a way to restart a Windows VM with Last-Known-Good state via PowerCLI

I would like to know if there is a way to do that using a PowerCLI script.  Thx!

View Article

Get all VMs in givencluster on specific datastore

Hi, I need help filtering all VMs in a given Cluster which are located on specific datastores. What I've go so far: List all VMs in a given cluster:Get-Cluster TEST-CLUSTER | Get-VM List all VMs on...

View Article


PowerCLI 5.1 problem - Set-VM "Index was outside the bounds of the array"

Hello,We have a problem with vSphere PowerCLI 5.1 Release 1 build 793510. We have a user - "test_user" in our vCenter Server to which we provide administrative permissions only on resource pool -...

View Article

Powercli script to list cluster Name, Guest and Hostname in Cluster

Greetings, I need Powercli script to list cluster Name, Guest and ESXi Hostnames in Cluster, then export to a csv file Thanks

View Article

Modify the existing script.

$vCenter = Read-host -prompt "Enter the vCenter hostname"connect-viserver -server $vCenter -Credential (Get-Credential)$cluster=read-host -prompt "Enter the cluster Name"$naa.id=read-host -prompt...

View Article
Browsing all 16717 articles
Browse latest View live


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