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

Image may be NSFW.
Clik here to view.

PowerCLI to check compliance?

Although I've written a script to get-compliance on all my guests, is there a command to push the 'check status' button for me on all my guests, or maybe a better way than going folder by folder? I've...

View Article


PowerCLI Installation Issues on Server 2016

New Windows 2016 server, installed .NET 4.7.2 as specified in the prerequisites. Getting numerous errors about dll's unable to be loaded. Server is off-net so I cannot use the install-module command....

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

Image may be NSFW.
Clik here to view.

Affinity / anti affinity rules check on vCenter 6.5 and ESXi host 6.5

I'm in need a of powercli script that helps to determine whether affinity rules are configured on any cluster or host. TIA

View Article

The server did not respond with an encrypted session key within the specified...

I have a script that clones any number of VMs in my master lab to different demo labs. I am using powershell workflows to run the cloning operation in parallel. Once the clone is complete; I try to...

View Article


Empty field annotation

Hi All, I was wondering why the following is giving back which VM's are having an empty value: Get-VM | Get-Annotation | Where-Object {$_.name -eq 'Application'} | Where-Object {$_.value -like $null} |...

View Article

The server '' is not part of a linked mode configuration.

S C:\MyData\PowerCLI> connect-viserver tst-vcenter3 -alllinkedconnect-viserver : 2020-07-24 9:10:09 AM        Connect-VIServer                The server 'tst-vcenter3' is not part of a linked...

View Article

cmdlet move-vm to migrate to another dc and folder vm

Hello, We are in the process to migrate all our VMs to a new datacenter (on vcsa 6.7)We are facing two problems. One is that using move-vm we have to assign the new cluster and the new vsan datastore....

View Article


Powercli Get-Tagassignment command

So I have a question about the data being returned by my script and I hope someone can line me out pretty quickly.This line of code '$az = (Get-tagassignment -Entity $Cluster -Category 'Availability...

View Article


powercli find bios or efi boot option

Trying to get a list of all my VMs and whether they boot BIOS or EFI using PowerCLI 5.5 release 1.  Doesn't seem to be in ExtensionData.Config.BootOptions like I'd expect and I'm having an awful time...

View Article

Image may be NSFW.
Clik here to view.

Single row for capacity disk

Hi guys, I customized a script for VM inventory for my requirement. Its working fine. But depending on the number of disk in vm , I get that amount of rows as result. For example: If VM1 has 2...

View Article

ESX host per-vSwitch NIC status report - excluding unpatched NICs

I'm writing a small script to check the ESX host network connections and flag up if a NIC connection goes down. A small issue is that the physical hosts have 8-10 NICs so I want to specify which NICs...

View Article

Looking for a PowerCLI script to get the ESXi hosts all the NIC driver and...

Looking for a PowerCLI script to get the output of ESXi hosts all the NIC driver and firmware version (ESXi OS 6.0 and 6.5). Script should have ability to capture the host names from a input file and...

View Article


Incorrect Product Forwarding Class on vDS When Upgraded via PowerCLI

I thought I would share some interesting behaviour on vDS configuration when you perform the vDS upgrade to 6.6.0 via PowerCLI, the following post I wrote explain the issue in detail....

View Article

How To Change vmk0 IP

I'm trying to run the "Set-VMHostNetworkAdapter -IP 'new-ip-address' -VirtualAdapter vmk0" without any success. Can someone provide guidance as to what is required just to change the IP? My ultimate...

View Article


Find the VM tools status

Hello Guys i am looking for script which can send daily with VMware tools info ( current/up to date,out dated,3rd party etc) .Is it possible ? if yes ,any help would appreciated. (i have 9 vCenters and...

View Article

Unable to get Folder Name using Get-View

Hi, I am unable to get the Folder Name using the below script using the Get-View. Please help. ScriptGet-View -ViewType VirtualMachine -Property Name,Guest |Select...

View Article


Script to manage vCenter Roles and Permissions across multiple vCenters

Hello Friends I am looking for a script that can manage the vCenter Roles and Permissions, we have multiple VC’s , so the Roles and Permissions need to be created on each of these VC’s any new VC’s...

View Article

Power cli script to get the ESXi count per vCenter server

Hi All, I am looking for a script to get the total ESXi count from multiple VCs , requirements are as follows  1. Input file with all the VC names2. Script should find the total ESXi count per VC and...

View Article

Problem exporting ALL VM's and details to CSV

Hi Guys, As after reading a bunch of threads here and modifying PS examples provided I've made a script which works pretty well for me and exports all my VM's with a bunch of relevant info I need. But...

View Article
Browsing all 16717 articles
Browse latest View live


Latest Images

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