Problem deleting snapshot via PowerCLI
I can see the snapshot via command line, but not via the vSphere Client.Unable to deleted said snapshot. > Get-VM | Get-Snapshot | Select VM, Name, Created VM Name...
View Articleovf deploy
How do I use powercli for ovf deployment? I got an ovf file that i need to deploy to 13 remote offices some are in the same virtual center and some are not managed by virtual center. any idea how to do...
View ArticleReconfigVM_Task CD/DVD backing - "Incompatible device backing specified for...
Hi AllI am trying to reconfigure VM using "ReconfigVM_Task". if CD/DVD is connected to the VM i want it to disconnect and change it to passthrough client device.i know this can be done in following way...
View ArticleAdd cluster name to report
Hi I'm trying to add the cluster name to the following code but could not get it to work: Get-Datacenter $DC | Get-DataStore | Where-Object {$_.Name -Notlike "Datastore1*"} | Get-VM | Select...
View ArticleGet snapshot deleted date/time
I've browsed the forum and have gotten some great scripts to get vm information on snapshots created/reverted but I would alsolike to know how I can see the Snapshots that have been deleted in the past...
View ArticleAdding RDMs to the 2nd node in a MSCS cluster
First off, Sorry for the lengthy text, but I’m having problems trying to put this to words. I’m having issues using PowerCLI to script the addition of 45 RDMs to the 2nd node in a MSCS 2012 cluster. I...
View ArticleGet-VM | Select-Object question
All, I am trying to write a script to get information on all my VM's. I have almost everything down packed, but I cant get the datastore. I want the out output to also show me what datastore the vm...
View ArticleAdding RDM: Incompatible device backing specified for device '0'
This is a continuation of my previous post. I have working code to add 45 RDMs to node A in a cluster. I'm now trying to add the RDMs to node B. This is the code I have that *should* work but...
View ArticlePowerCLI Hanging Issue
So I'm running into an odd issue I can't seem to find any info on at all. Of course maybe it's PEBCAC based >_>. There are several commands that have been hanging when executed against my hosts,...
View ArticleMove-VM to Blue Folder that Exists Multiple Places
So I have an issue here that I'm not sure if it can even be sorted. Putting in a new VM provisioning system. Have multiple datacenters & clusters and would like the ability to automate moving a...
View ArticleIssue with Remove-VDSwitchVMHost
Hi guys, First off... Here is the version of PowerCLI I am using:PowerCLI Version---------------- VMware vSphere PowerCLI 5.1 Release 2 build 1012425---------------Snapin Versions---------------...
View ArticleSet LVM/EnableResignature = 1 with PowerCLI on ESX 4.1
Hello, because the way the handling of Snapshot LUNs has changed dramatically in ESX/ESXi 4.x we are looking in a way to set the LVM/EnableResignature parameter to 1 on our hosts through a script. We...
View ArticleVM's Shutdown, take Snapshot, power on, delete snapshot
Hi I did get the below mentioned script created by LucD in one of the answers to a community $VM = (Get-Content c:\temp\servers.txt)foreach($vm in Get-VM -Name $VM){ Shutdown-VMguest -VM $vm...
View ArticleGet virtual device node of virtual harddisk
Hi All, I'm trying to find out the powershell/powercli commands I need to get the next available virtual device node when creating a disk. Using the Get-Harddisk I seem to be unable to find that...
View ArticleError Joining Host to Domain ( Active directory authentication store is not...
Trying to join a few hundred hosts to the domain. Please advise whyt he below commandline is not working.NOTES:-$VCenterAdmin is an AD account that has permissions in both VCenter and AD, the credetial...
View ArticleHost Hardware Sensors stale data through PowerCLI
I'm trying to read the temperature values available on the hardware status tab on our hosts via PowerCLI:Get-VMHost | Sort | % { $reading = ((Get-View...
View Articlepowercli to find full path of VM's resource pool location
Hi, I'm looking for a function or script code block I can use to get the full path (depth) of the Resource Pool that a VM is located in. I'm looking to execute something like, "get-vmPoolLocation.ps1...
View ArticleGetting error when trying to export VM folder locations
Hi I get the following error when trying to export vm folder locations. Get-View : Cannot validate argument on parameter 'VIObject'. The argument is null or empty. Supply an argument that is not null...
View Articledoes it make any difference what version PowerCLI to use??
We are on ESXi 5.0 U2 and vCenter 5.0 U2.Does it make any difference which version PowerCLI we use??If so, how do I determine the currently used version??And which PowerCLI version matches 5.0 U2 and...
View ArticleGet-Parameter Cmdlet not working
Hi All, I am new in PowerCli and require your help to fix an issue, it may be basic but please help on this... I am using following PowerCli Version and when use the command let, it is not working, I...
View Article