Passing current credentials (SSPI)
I wonder how PowerCLI does to pass my current AD-credentials when connecting to vcenter or invoking scripts in VM's? Im creating a custom module, wrapping some of those commands, Its not CredSSP,...
View ArticleMatch correctly windows disk to vmware harddisk
I've been searching all over for a way I could match disks inside windows to vmware's harddiskThe problem is when I have disks with same scsi id on more than one scsicontroller (for ex. (1:0) and...
View ArticlePowerCLI Report: Get Datacenter, #cluster & stats
I'm looking to run a PowerCLI script to return a table with the headings as follows: Datacenter | Number of Clusters | Total CPU (GHz) | Total Memory (GB) Many thanks
View ArticleDisable TLS 1.0 in vCloud Director 5.6.x
Has anyone been able to disable TLS 1.0 for cell servers in vCloud Director 5.6.x? The documentation for 5.5.x is the only reference I can find, but the command argument listed no longer exists in...
View ArticleFind out which VMs have mounted a certain VMDK
What's the fastest way to find out which VMs have a certain VMDK attached? I can see in vCenter > Storage Reports (Virtual Machine Files) that the Number of VMs on a certain VMDK shows as 2. This...
View ArticleConfigure powerfail on different ESXi hosts with rccmd
Hello,i`m quite new to VMWare and i`m trying to set up the shutdown behavior on powerfail with our ups. We have two hosts on different sites, each of them plugged into an ups.The hosts are configured...
View ArticleTAG Permissions
Must allow a user to manipulate tag, which role it needs to havethanks in advanceMarcelo
View ArticlePowerCLI Export and Import Roles and Permissions Question
Hey everyone. I am working on deploying a new trio of vCenter servers in our environment. We are consolidating down from about a dozen different vCenters since, as you can imagine, managing those is a...
View ArticleList Windows IPs
How can I create a csv with the IP address of every windows VM in vCenter?
View ArticleError handling help
Hi All, I have an esxi postbuild script, all works well except when trying to add the syslog server, that doesn't always work as the DNS entries for some unknown arent always successful, if I run it...
View ArticleHelp to show VMHost name on a script
Hi, Beginners question... Using this command: Get-VMHost | Get-VMHostStartPolicy I get this result: VMHost Enabled StartDelay StopAction StopDelay WaitForHeartbeat------...
View ArticleGet-VM using multiple tags to get a specific tag after that can be filtered
Hi Guys, I am currently having an issue where the actual results of a query isnt returning all the VMs I want, instead I get too many and then have to filter out the ones I want later in Excel which I...
View ArticleGet-TagAssignment Entity includes custom field names (Bug?)
Our environment uses multiple CustomAttribute annotations on VMs. I've noticed that when I use Get-TagAssignment on VMs in our vCenter, the Entity object, which should be just a VM (VirtualMachineImpl)...
View ArticleHow to assign IP address to vm created by template using ansible?
Hi, I am trying to deploy a VM by template using ansible, i dint find a way to assign the IP address for the vm created. Please advice me. Note: i have achieved the same using powercli but am looking...
View Articleroute print info
Any possible way to get route print from the VM's . I am trying using invoke method but can't write the output properly to csv. foreach($vms in Get-ResourcePool test1 |Get-VM |? {$_.PowerState -eq...
View ArticleHow to get Task and Events on Datastore, Through Powercli ?
I was trying the below, but it trowed and error. $datas = Get-Cluster -Name "xxxx" | Get-Datastoreforeach($ds in $datas){ $dview = $ds | Get-View Get-VIEvent -Entity $dview | ?...
View ArticleNew-DatastoreDrive
This used to work. Hopefully someone can point me in the right direction of what replaced New-DatastoreDrive ?Get-Datastoredatastore2|New-DatastoreDrive-Nameds Copy-DatastoreItem -Item...
View ArticlePowerCLI Scripting - SnapShot Create Date is older than 3 days
Hi All! I was tasked to create a script which queries all the snapshots created VMs in an eSXI host. The main requirement is to generate a list of snapshots and VMs with create date of older than 3...
View ArticleConnect-VIServer -AllLinked with Enhanced Linked Mode
I'm struggling to find an "AllLinked" solution for "Connect-VIServer" with Enhanced Linked Mode. Our VC6 infra has 4x geographic VCs in an Enhanced Linked Mode configuration and we may add more VCs as...
View Article