Get list of plugins and versions installed from vCenter?
Hi all, Does anyone know how to use PowerCLI to get a list of plugins installed in vCenter, their versions and any other information associated with those plugins? I found Get-vCenterPlugin, per...
View ArticleEnable VMNIC on ESXI Host
Is it possible to enable a physical VMNIC in vSphere on an ESXi host? I know it can be done on the ESXi console, but what about through the vSphere GUI in 6.0?Can the above box be enabled through...
View ArticleEsx host service tag
I am trying to run a script to display certain info but cannot get the host service tag to display. I am getting all other info EXCEPT for service tag. Please see the below for what I have so far. Any...
View ArticleHelp for scalable script fetching performance of hosts.
Hello everyone,I'm working as an operator and every month we have to manually export the performance data (CPU/Memory/Network) of all the esxi hosts of one of our client. This takes around 4 hours for...
View ArticleScript to get esxi syslog location across vCenter
Hi All,Need to update esxi syslog location across my vCenters. Is there a script which can get me the existing syslog location of all the esxi host across my vCenters. Thanks in Advance
View ArticleGateway IP sub-allocation --can I list these contents?
All,Just getting into powercli for vcloud...wondering if there is a command that will list the IP range of all the gateways. The field I want in the gui is under manage and monitor, cloud resources,...
View ArticleAssistance with Wait and Win VM
So two questions here:1.) This is less related to PowerCLI but still an issue Im having and maybe you fine people can assist. I am able to run scripts through PS and Powercli on a Win Server 2k8 Im...
View ArticleVCSA and PSC DNS Server settings
Hi, Looking for a PowerCli way:To run through a list of VCSA servers and generate report on the current DNS Servers configured on VCSA and PSC appliances. Also, if possible (can be a second script) to...
View ArticleGet-VIEvent Specific Time Range of a Specific date
So for some reason when Get-VIEvent was written, it uses the Date/time interval as MM/DD/YEAR. It does not allow you to specify the time without parsing it. Does anyone have any workarounds in order...
View ArticleAdd AD group as Administrator on esxi
Hello All I have esxi connected to AD group alreadyNow i need to add one ad group to Esxi Administrator New-VIPermissionNew-VIRole I saw a note from LucD $oldGroup = 'domain\oldgroup'$newGroup =...
View ArticleWhich horizon version can connect using PowerCLI 6.5release 1 Horizon API ?
Hi expert Could you tell me which version can use to connect connect-HVServer commandlet ? I will create power cli script for Horizon 6, and View CLI can not get advanced information.So I have to...
View ArticleWhats the recommended way for providing PowerCLI 6.5.1 for a 32Bit Process on...
I have a 32Bit process using the (old=6.5.0) PowerCLI, after migrating to 6.5.1 the module is only available for 64Bit process (Modules in C:\Program Files\WindowsPowerShell\Modules\…), i copied the...
View ArticleGet-VIEvent Identify User who powered off VM without using Task query
So I just trying to research if there is a way to identify which user powered off a VM without querying the Task event. The reason it cannot be a task event is because when i look at the log in the GUI...
View ArticleUpdate DNS Servers on vROps Nodes
Hello, I'm looking for a way to leverage PowerCLI to update DNS Servers on multiple vROps nodes. I understand we would need to do this manually. Please correct if I missed anything in the below steps,...
View ArticleDeploy OVF from Content Library to inventory
Hi All Been trying to work out how to deploy an OVF from a content library through PowerCLI. I've got as far as this: Connect-ViServer <vcenterfqdn> Connect-CisService <vcenterfqdn> $rp =...
View ArticleAdding Datastore from storage snapshot using PowerCLI
Hi All, Is there a way of adding a iSCSI Datastore using PowerCLI that enables you to resignature? I have cloned a LUN from the storage and I dont want to format it I have rescanned the HBAs and can...
View ArticleMetric doesn't exist, but documentation says that it should
According to this docdisk.totalReadLatency.average should be available for VMs but when I try it it tells me it does not exist: Get-Stat -Entity 'MyVM' -Stat 'disk.totalReadLatency.average'...
View ArticleRunning VCheck accross mutiple vcs provides get-html error
HI, quick help please, Im tried to run vcheck across mutiple vcs by folllowing below article but failing Please help me to resolve the issueIm getting below error Please let me know what should i...
View ArticleHow to fix error for "Corrupted credential store file content:"?
I am getting the following error when I try to use a stored credential:Connect-VIServer : Corrupted credential store file content: "pathname-removed-here"At pathname-removed-here.psm1+ ... $VCConn =...
View ArticlePowercli migrate VM host to host with Fault Tolerance activated
Hi. I have a vm with FT activated. With PowerCli I want to make a script for migrate the vm host to host. The primary VM no problem, but the second returns error. Example: VM= test3 PowerCLI C:\>...
View Article