Get-Esxcfginfo - William Lam script
Hi All I need this script send me data in xls & also possibly add more data the cmd send apart from below 3 .. if($childnode.name -eq 'device-name') { } elseif($childnode.name -eq...
View ArticleRename distributed switch uplinks
We are implementing distributed switches in our environment, we are trying to migrate using powercli and it works great. My question is purely cosmetic. Is it possible to rename the different uplinks...
View ArticleIssue running Powercli script in Powershell ISE
Hi there So i use ISE for both Powershell and PowerCLi scripting, but I have recently noticed an issue with a script I use. The script I use deploys Linked Clones to our ESXi environment, and until...
View ArticleUplinks on a virtual switch
Hi, Each esx host in our environment has 8-10 uplinks. There are different vswitch (standard and distributed) configured for management network, vMotion, Production, Backup etc. The uplinks are added...
View ArticleGetting CSV of all VM's with info tabs,
Hi All, Feel like this is a stupid question, but after much research I cant find the answer! The goal is to have a CSV report with all the VM's on a VCenter, with columns of associated data for each...
View ArticlePowercli + Horizon
Is it possible to add an unmanged VM to a Manual Desktop Pool and assign a user to that VM via powercli? I have a powershell script that will create the VM and join it to the domain directly from...
View ArticleHow to get VMhost for a VM template (from get-view)
Hi all - I'm using PowerCLi 6.5. I created a function that uses get-view to report a lot of info about our VM templates (e.g., name, description, filename, datastores, vm folder, version, CPU, memory,...
View Articleconnect-viserver not working in PowerCLI 6.5.1
When I run connect-viserver -Server vcenter -Credential(Get-Credential) I get: Connect-VIServer : 'config.vpxd.sso.sts.uri' is invalid or exceeds the maximum number of characters permitted.At line:1...
View ArticleLast VM powerOn
I am trying to pull together a script that will list all my powerd off VMs and then list its last PowerOn. Anyone have any ideas? Jim
View ArticleScript or commands to find Power Management Settings
I did some google searches and couldn't find anything handy in this forum so far. Is there a handy PowerCLI command or script that someone has that can find the current Power Management setting...
View ArticleVM to OVF w/ OVFTOOLS Error
Hi, Using ESXi 6.0.0, ovftool 4.2 I am trying to export a VM in a standalone ESXi to OVF using the following sintaxys: C:\Program Files\VMware\VMware OVF Tool>ovftool...
View ArticleGenerate report about VM properties
Hello, I'm trying to get the following in a report:VM name.network name of that VM.hard disk location (optional). I've tried to specify a property with "get-vm" and "get-networkadapter" but it seems...
View ArticleHow to delete VMs from vCD via powerCli?
Hellofor test purposes, I frequently have to remove VMs from a vApp in vCloud Director. As I would like to do it 'properly', I do not want to delete the VMs by connecting to a vCenter and run...
View Articlewhen running OVF Tool exe, i get this: Error: No source or target specified
when running OVF Tool exe, i get this: Error: No source or target specified.seen a few links stating it doesn't like running from folder it was installed in. any help as to where it could run from?thanks
View ArticleAdd physical nic to a specific ulplick port of VDS
Hi there,I have an issue with adding physical nic to a specific uplink port on the VDSIn powercli we have this example>man Add-VDSwitchPhysicalNetworkAdapter -Examples-------------- Example 1...
View Articlevmware tools
Hi experts Can anyone correct this script, i have vms in text file i need to install vmware tools on these machines. $GuestCrd = Get-Credential Administrator $VMs = Get-content .\servers.txt foreach...
View Articleget-vmhostprofile status
how do I get the profile status (compliant/non compliant) for a cluster of vmhosts?
View ArticleVM Network information
HI All, I have 100 VMS running on 5 ESXi hosts. VM Configuation is as below. CPU --> 1 vCPURAM --> 8 GBNIC 1 ---> E1000 ---> VLAN101NIC 2 ---> E1000 ---> VLAN102NIC 3 ---> E1000...
View ArticlePOWERCLI 6.5.1 and powershell 4.0
Dear all I have installed powercli 6.5.1 in powershell 4.0 console I have followed the instructions from Kyle Ruddy blogsKyle Ruddy, Author at VMware PowerCLI Blog - VMware BlogsBut when I run...
View ArticleParsing import-csv VM data
I'm importing a csv with vmnames. They have one of 4 formats: vmname1234vmname1235 locationvmname1236-locationvmname1237 - location the first is just the vmname.The second is a vmname then a space...
View Article