Quantcast
Channel: VMware Communities : All Content - VMware PowerCLI
Browsing all 16717 articles
Browse latest View live

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 Article


Why 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 Article


Cluster 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 Article

Snapshot 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 Article

Getting 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 Article


Duplicate 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 Article

Assign 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 Article

script 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 Article


Get-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 Article


Windows 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 Article

Centralize 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 Article

Backup 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 Article

Odd 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 Article


How 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 Article

PowerCLI 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 Article


power 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 Article

Image may be NSFW.
Clik here to view.

List 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 Article


get 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 Article

Image may be NSFW.
Clik here to view.

Receiving 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 Article

Horizon + 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
Browsing all 16717 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>