Get VM + Assigned Tag
Hi, I need to get VM and the Tag(s) assigned to it, but couldn't get a correct result, could you please review this simple script, or give me another idea. $getvm = get-vmGet-vm | Get-TagAssignment |...
View ArticleWhy IP address of all VMs not dispalyed ?
I am using this cmdlet.. Get-VM | Select Name, @{N="IP Address";E={@($_.guest.IPAddress[0])}} but IP address of all VMs present in esxi server is not displayed.. Name IP Address----...
View ArticleCluster CPU Usage Average
Hello, After I have read few topic related to this problem I found this script: $stat = "cpu.usage.average"$entity = Get-Cluster$start = (Get-Date).AddDays(-7) Get-Stat -Entity $entity -Start $start...
View ArticleSnapshot properties
We have several processes that manage snapshots in our environment, but we wanted to identify those snapshots that might require a little more attention when removing. Specifically, we are looking for...
View ArticleGetting montly cpu contention value?
Hi guys , i am fairly new with powercli , i am trying to get montly value of cpu contention, by my understanding with this script (get the script from this forum) i get the average of today (maybe i...
View ArticleDuplicate Sessions Report
Disclaimer: Powershell novice - be gentle and speak slowly in short words. We have a problem with duplicate sessions (don't ask - long story; not getting corrected for a while so this band-aid is...
View ArticleAssign vminc to Specific Uplink on VDS
Hi All, I have requirement to assign vminic1 to Uplink 2 on my VDS.. vminic0 is assigned to VSS vSwitch0 and before migrating VMkernels to the VDS (via Powershell) I need to have an active Uplink on...
View Articlescript powercli to Assign tag in a category to vms and update
Hi, I have a script to assign a tag in a category to vms from a csvit works well with powercli 6.5but I have to replace the tag when the tag existsor a powercli script to erase the tag with the...
View ArticleGet-ContentLibraryItem doesn't work
Hello, I just installed PowerCLI 6.3 Release 1, in order to get 'Get-ContentLibraryItem' cmdlet available.After launching the console, and connect to a vCenter, I run 'Get-ContentLibraryItem' command...
View ArticleWindows server cloning, how to automate joining domain
We have a test group that at anytime has about a hundred test servers. When they move to a new platform, they typically present a gold image of a Windows server, and request that the VMware admins turn...
View ArticleCentralize Credentials Get-VICredentialStoreItem
Hi All, Working on an Audit script run from the audit server that uses a generic account with Read Only access to all vCenters. I would like to use the VICredentialStoreItem to store the credentials...
View ArticleBackup vDS
Hey all,I am working on making a script to simply backup my vDSs. I have it doing one, but I would like to have it do all my switches and create an individual backup in a folder. I am missing some kind...
View ArticleOdd Move-VM Behavior (Must log in using username and password?)
Hi all, I'm trying to develop a script so I can move guests from one cluster to another. Right now I'm trying to get things working on 1 VM as a proof-of-concept, but I'm running into issues. Here's...
View ArticleHow to check PSC self certified or not using powershell or inside PSC ?
I'm installing PSC self certs, may i know how to check the Certs successfull or not ?.Usually i will check the URL, is there any way to check through command line ? Much appricated for your response...
View ArticlePowerCLI Script
I am trying to execute the following script: Connect-VIServer MYVISERVER $MyCollection = @() $AllVMs = Get-View -ViewType VirtualMachine | Where {-not $_.Config.Template} $SortedVMs = $AllVMs | Select...
View Articlepower cli to create distributed port group
can some one help me with a powercli command to create a distributed port group but i also need to select uplink 3 & 4 as active teaming and failover and uplink 1 & 2 as unused uplink or power...
View ArticleList VMs in datastore that is not in inventory
Hi Guys PowerCLI rookie here, so sorry for stupid questions. I’m trying to clean up a bunch of singehost with local datastores. So I need a script that can output a list of virtual machine files on a...
View Articleget only windows vm where tag is tag-1 without quotation and header
Recently I had opened a discussion:I have this script that gives me vms that have the tag "tag-1". Connect-viserver vcenter01 -user vcenteruser -pass passworduser Get-VM | Get-TagAssignment |...
View ArticleReceiving Output in different format
Hi all, I am new to Powercli.I want retrieve all the VMs details whose Guest OS is Linux. SO I executed the following command and obtained the nearly correct output. But the output format is different....
View ArticleHorizon + PowerCLI
I am writing a script to automate the creation of a VDI and entitlement. The one issue i am having is how do i assign a VM to an existing pool? I can use add-poolentitlement to entitle the user to a...
View Article