Automated VMWare tools deployment question...
Hello, I am working on a deployment script and trying to cover as many "bases" as possible. So I am wondering, after spending quiet a long time googleing, Is it possible to push install VMware tools...
View Articleget-vm | get-vievent output in html email
Hi everyone, I'm having some trouble pushing array results into an object, and then adding the object's members to an array. I've had success using the below method in the past, but I've only...
View ArticleCopy-VMGuestFile: Wildcard copies from guest to local now fail with VMTools 9.10
Just a note in case someone else experiences similar behaviour Using Copy-VMGuestFile seems to have stopped allowing wildcard copies from the guest to the local system. The "local" is PowerCLI V6R1...
View ArticleGet HBA devices/paths list with Powercli
Hi Guys, I would like to know if is there a way to get the HBA devices list from a given vmHBA with PowerCli.
View ArticleHow to retrieve all Virtual Machine IP addresses (including DHCP and Static)...
Hi All, Anybody can tell me how to retrieve all Virtual Machine IP addresses (including DHCP and Static) with any command (PowerCLI, vm-cmd, Esxcli, Shell,etc), which is managed by ESXI vSphere Clint,...
View ArticleExport VM's created today in specified cluster
Hello, I am new to powershell and been experimenting with it. To automate a common task i need csv file with:Name (vmname)Mac (vm mac address). The vm's listed need to be in a specified cluster and...
View Articleusing powershell to find user sessions longer than X duration
I wan to return the session objects longer than 7 days but cant figure out the format of the duration parameter. Get-RemoteSession -Duration ? help says: -Duration [<string>] Filter based on...
View Articlecustom attributes for a vm or more
is there any way to create a custom attribue for VMA, lets say "datacenter region" and then query for that attribute later.
View ArticleStorage vMotion a VM except disk that resides on another datastore
Hello, I am looking to convert a large number of VMs from linked clones to Thick. I have decided the easiest way to perform this is probably a simple a storage vMotion, however all VMs have a...
View Articleis it possible to run ExtensionData.UpdateServerData() asynchroniously?
is it possible to run ExtensionData.UpdateServerData() asynchroniously? I found very useful script that allows changin VM Storage Profile. The only issue I have with it is that it runs one...
View ArticleDeploy new VM from a template using xml and powercli
Hello Friends, I'm looking for an option to run powercli command to deploy new VM from a template using xml file. I already found this: vSphere Documentation Center But the examples of the xml file is...
View ArticleVSAN - VM IOPS per VSAN datastore
Hi, I've been using this code from a community post to get a list of IOPS per VMs per NFS datastore, it's very simple and fairly fast to run: Get-Datastore "datastore_name" | Get-VM | Sort |Select...
View ArticlePowerCli to get HBA Firmware details
Dear, Kindly share a PowerCLI script to find out the Fiber Channel HBA Firmware Version, Driver Version, BIOS version and FCODE version. RegardsRajesh
View ArticleConnect-VIServer only works with a login dialog
I try and connect to my server like so: Connect-VIServer 10.95.1.20 A login dialog pops up. I type in "root" and our super secret system password. It connects nicely. But if I try and connect like...
View ArticleTotally Puzzled with OSCustomization...... Please help
I have created this whole part of the script, and it works perfectly when pasted as one liners into the powershell console, however, when running it inside a script, it gives a puzzling error.......
View ArticleExport / Import selective Folder structure
Hi, I require a script which can do the following, I have two vCenter VC1 and VC2 and many VM's with same names are present in both the VC, 1. Export the complete folder structure with VM details of a...
View ArticleView PowerCLI
Is it possible to query the Application Pools and see what applications are installed and see al the parameters so I can export it to a csv file?
View ArticleOpen PowerCli from C# and run Commands on PowerCli
Hi, I want to run commands in PowerCli in remote server from C#, So I need to open PowerCli in remote server from C# I tried to run the below command but getting Connect-VIServer is not found as a...
View ArticleCalling Powercli commands from C#
Hi, Is there a way to use powercli commands from C# ? .Like how we are specifying the command in Powercli console, "Connect-VIServer -Server 172.17.21.51 -Protocol https -User user -Password pass -Port...
View ArticlePlease help to include "Who created the VM snapshot" for the snapshot report...
Please help to include "Who created the VM snapshot" for the snapshot report script. Connect-viserver "vCenter Server"$PSEmailServer = "smtpserver" $date = get-date start-Transcript -Path...
View Article