Remove a datastore that is in use
So, we have some datastores we're looking to retire, however removing them from the web client gives us a "datastore is in use" error. We worked with VMware support, and they gave us a bunch of...
View ArticleImport-VApp Host did not have any virtual network defined
I have used the OVF tool to export a couple VM's from my 5.1 environment. When trying to import these VM's back into the environment using PowerCLi I get the error that is in the subject line. My hosts...
View ArticleUnable to setRecoverySettings over the SRM API
Hello all,I am create script for automation of adding server into SRM with requested settings, like priority, postRecoverySteps and so on.I am strugled in the last step to set the requested settings to...
View ArticlevSphere 6.0: VM cannot boot after assigning PCI passthrough QAT Co-processor...
The PCI device was an Intel QAT (Quick Assistant Technology) device. This (add PCI passthrough then poweron) can be done by vSphere Client, or vSphere Web Clientbut failed to do it via powershell CLI:...
View ArticleAutomate Assigning Static IP to VM without using VMware tools
Hi, I have a Centos 6.8 based OVA which I want to distribute, using which the users can deploy VMs and start using them.I would like to automate the process of deploying the VMs and configuring...
View ArticleHost data gathering
Hi I am trying to write a script that will return some information but this is also a general question.Here is a one-liner. i am seeking to get the Name of the esx hosts as well as the model. The name...
View ArticleScript to check if iDRAC is a member of Domain or not
Hi All,is there a script where we can know if a iDRAC is a domain member or not. It is important to have idrac in domain so as to login the idrac with AD account with proper track. Thanks a ton
View ArticleAutomating the process of adding Active Directory as authentication source in...
Hi, I am looking for automating (using PowerCli) the process of adding AD as an authentication source in vCenter and add 'domain admins' group as Administrators. I am running vCenter 6.5 on windows...
View ArticleList all VMs in a DataCenter with a particular tag in a category even if tag...
Disclaimer: I powershell challenged. I am looking for a powercli that can list ALL VMs in a particular datacenter that do or do not have the tag category 'ApplicationOwner' assigned to them. The...
View ArticlePowerCLI 6.5 Error when running Connect-HVServer
Hello, Looking for insight on the this error. Trying to connect from the connection server (v7.1). Please post a reply if you have encountered this scenario. Issue occurs for mutliple IDs from a...
View ArticleRetrieving VM Settings in Power Shell
Basically, I want my script to be able to check for a particular setting, in this case "isolation.tools.copy.disable", whether it exist in each VM or not. And after checking, it would want to...
View ArticleNSX Ipsec tunnel status
Hi Lucd, Good day, We are using powernsx to get some info for NSX, But there is no details about IPSec VPn statistics status. Is there anyway to achive this?Thanks in advance.
View ArticlePowerCLI 6.5.1 connect-viserver returns nothing
I recently installed PowerCLI 6.5.1 on a Windows 2012 R2 server.From this Server is I run connect-viserver 'MyVCenterServerName',nothing is returned when attempting to connect to a v5.5 U3b vCenter....
View ArticleGet VM Name, Hard disk file name, and size
Hello, I need to get a VM name, VMDK file name, provisioned size, and actual size please.
View Articleusing an input file
For most of the scripts I have created I have done: $vmlist="blah","blah1","blah2" <--- would like file located for example in c:\tmp\inputfile foreach ($vm in $vmlist) { Get-VM $vm |...
View Articlelist disks rdm with powershell
Hello , i like how lists disk rdm of a vm .Command get-hardisk give me location vmdk , capacity , but i want more informatation disks RDMs Por example , i want to list imformation like vmhba...
View ArticleFinding out relation between vmdk and file system
Hi All, We have a few VM which uses multiple small VMDKs to make up one file system. For example, this is the disk layout for one of our VM.PS > $vm.ExtensionData.Layout.Disk Key DiskFile...
View ArticleI am getting an error -"Connect-VIServer : Invalid URI: The hostname could...
I am getting an error -"Connect-VIServer : Invalid URI: The hostname could not be parsed." when i try to connect from Powershell script. however if i try the command from powecli promt it works. Can...
View ArticleGather Edge information
Dear Community, I'm in need of a script which can gather the following information: - versions of all Edges (adminVAppNetwork, adminOrgNetwork and edgeGateway)- type of Edge- organizations they are...
View Articleupdate vmware tools status
is it possible to get a status on mass vmware tools upgrade? get-content vms.txt | % { update-tools -VM $_ - noreboot -runasync} when i run this I only see this
View Article