[Help] Convert disk from thin provisioning to thick lazy zeroed
Hi guys, I want to convert VMs disk from thin provisioning to thick lazy zeroedIs there any PowerCLi command to do that? Btw, if we convert disk from thin to thick, the data on vmdk file can be lost or...
View Article48 hour Snapshot History Report
I'm looking for a script that can give a report of all snapshots that have been created and removed in the past 48 hours on all datastores. Basiclly what I'm trying to do is set up time line of our...
View Articlegetting result to a outputfile
Hi All, I am trying to extract VSwitch Secuirty properties using a script,however I am unable to export the result to outputfile.I have tried >| path and other synatx but still results just gets...
View ArticleCreate Webpage to store Vmware Information
Hi guys Good day.As part of automation initiative, I would like to implement an internal web server/webpages that will function as information and inventory repository for my Vmware Infrastructure.On...
View Articlecopy ssh keys
Can we do this with powercli ? Enabling Password Free SSH Access on ESXi 5.0 | VMware vSphere Blog - VMware Blogs
View Article5 min VM time samples where CPU ready => 5%
Hi I need help creating a script that extracts every recorded occurrence of VM CPU ready => 5% during the past 24 hours.Example output:DateTimeClusterNameVMNameCPURdy2015-06-16...
View ArticleVMware.vim.dll without powercli
Is there a way to use "vmware.vim.dll" without powercli being installed ?so that an application developed with reference to vmware.vim.dll can be run in any machine without powercli. Thanks.
View ArticleView Smart Card info
Anyone found a way to view with PowerCLI whether or not smart card authentication is enabled? AD info seems hard to come by via PowerCLI!
View ArticleChanging disk persistence
Following this thread, trying to change disk persistence on a running VM using powercli (latest version... 5.8 I believe). Changing persistent <-> non-persistent disks Doing so results in an...
View ArticleDS audit
$ds = Get-Datastore |where {$_.type -eq "NFS"} | Get-View $ds | Select -ExpandProperty Summary | select name, @{N="Capacity (GB)"; E={[math]::round($_.Capacity/1GB,2)}}, @{N="FreeSpace (GB)";...
View ArticleTry to list VMs by NetworkName, then add Advanced Setting
Hi, I'm trying to connect to a host (not a vCenter), list the VMs, select the ones in two different networks, then apply two Advanced Settings to the VM. So far I have this: $vms =...
View ArticleWould Like to mount media in vCloud Vm via powercli
Hello I have scripted the creation of a vApp network with multiple machine in, in vCD, pulling variables from a CSV file.I would like to be able to now script the mounting of media from a catalog, then...
View ArticleConnect-SrmServer not able to work with SRM server in shared recovery mode
Hi,I have installed SRM version 5.5.1 1647061 in shared recovery mode (ran setup with /v:”CUSTOM_SETUP=1”) option. vCenter version 5.5.0 1891313 PS C:\Windows\system32>...
View Articlehow to user powerGUI to migrate the vm?
hi,everyone: when i user the powercli cmdlet to migrate the vm,my script like this: foreach ($vm in (get-vm |sort -property name)){ move-vm -vm $vm -destination myhost } the script can...
View ArticleCan a Windows server with direct access to a VMFS LUN mount it using PowerCLI?
Hi, I'm wondering... can a Windows Server that has direct access to VMFS SAN LUN mount that partition using PowerCLI? Has anyone tried this? Thanks, -virtualhobbit
View ArticleHow To Powercli Get the actual number of paths in Datastore Details
I'm searching for a Powercli command to get the actual number of paths in Datastore > Datastore Details Cheers,Vincent
View ArticleSnapshot report not showing VM name
hello I am issuing following command to list out snapshot value but i am not getting VM name instead i am getting VMware.Vim.VmEventArgument, could you please help me$vm=get-content c:\vms.txt PowerCLI...
View Articleset vCloud Director vApp VM memory and hardware with PowerCLI
I am trying to modify the memory and CPU allocation for a vCloud Director vApp VM. The vApp is deployed, but stopped. I have tried various combinations of the PowerCLI commandlets, but with no success....
View Article