Quantcast
Channel: VMware Communities : Discussion List - Automation Tools
Browsing all 9071 articles
Browse latest View live

See number of paths per LUN per host

Hi I've seen so many scripts these past days on how to check my storage connections, but I still don't get the info I'm searching for. I would like to see per host for each LUN (RDM / Datastore) the...

View Article


HBA details with number of paths

Hi, Can any one help with powerCLI script to get HBA details with number of paths and LUN from all ESXi host please...?

View Article


Image may be NSFW.
Clik here to view.

How to use Get-View instead of Get-VM for Advanced Settings of a VM

I have a question related with the advanced settings of a VM and how to use Get-View instead of Get-VM for this particular case:Get-VM * | Get-AdvancedSetting -Name "scsi*sharing" | Select Entity,...

View Article

Image may be NSFW.
Clik here to view.

Set NTP Server information using powerCLI

How can I set NTP server settings on a group of ESXi hosts using powerCLI?  I want to set my primary and secondary NTP server names, and configure them all to have the NTP server service start with the...

View Article

Weird error with Auto-Deploy and PowerCLI

Basically, I can create a new deploy rule for a given amount of time on a server before I have to rebuild it to get it to stop. I'm sure its some Windows patch, but im not sure where to start. Here's...

View Article


PowerCLI Error "Exception has been thrown by the target of an invocation"

For whatever reason the New-DeployRule cmdlet has been throwing an error on this one system and I have been beating my face off the desk trying to figure out what is the fix.  I can run it all day...

View Article

Do not run the command in the GuiRunOnce

Hello , I am writing a script to automatically create virtual machines . In block Set-OSCustomizationSpec GuiRunOnce want to record multi- variable in the file by typing "cmd / c powershell.exe {$...

View Article

Image may be NSFW.
Clik here to view.

Adding values in hastable

Hi there!Why doesn't the table vmTAB filled in with the values in my script?  foreach($vmImpl in $vms) {  $vm = Get-View $vmImpl.ID  $counterv+=1  $bfldr= Get-Folder -Name (Get-View $vm.Parent).Name...

View Article


dnsshell

Sorry for deviation, generic PowerShell Q i downloaded https://dnsshell.codeplex.com/ PS C:\Users\user1>  Import-Module DnsShell Security warningRun only scripts that you trust. While scripts from...

View Article


Powercli script in batch file

Hello, I need to know the best practices to use powercli commands launched in .cmd file. I.e.: If I would automatized in batch the stop/start of a Vapp, I create a .ps1 file, but how can I launch it...

View Article

Copy-VMGuestFile fails with large payload

I'm trying to copy a hyperic agent .msi installer payload from local to guest but it fails with the 381MB file. The error returned is: Exception of type 'System.OutOfMemoryException' was thrown.At...

View Article

power cli script not working in 5.5 \ was working prior

I am trying to perform actions on VMs that reside in a csv file.    Here is what I have: connect-viserver$vcenter foreach ($_.namein (Import-Csv"$ENV:USERPROFILE\Desktop\vm_list.csv"-UseCulture) )...

View Article

Guest OS Customization

Hi all, I am calling a Guest OS customization spec in my PowerCLi script that I am using to automate the deploy of VM's. The script executes and 10 minutes later there is a machine on the domain with...

View Article


powercli equ. of "the next time the vm boots,force entry into the EFI setup...

This checkbox can be selected from vsphere client GUI, is there powercli equivalent available?"the next time the vm boots,force entry into the EFI setup screen"

View Article

Image may be NSFW.
Clik here to view.

Get List of VMs, Datastores and Folder name per Cluster

Hello!!  I'm hoping someone can assist me with a PowerCLI script that can pull the subject info into a txt or csv file.  In an effort to get our environment cleaned up before our next DR exercise with...

View Article


PowerCLI Script to Sort hosts by number of ResourcePools

Hi,I have been trying to write a script to output a list of hosts and order them by lowest number of resources pools. SCRIPTParam($location)$vmhost_list = Get-VMHost -Location $location |...

View Article

Export Cluster Datastores, NAA, VMs

Hi guys Appreciate if you can check this modified script if correct. I cannot get values for "Free Space" & "NAA ID". $Clustername = "Development Cluster"Get-Cluster $Clustername | Get-VM | Sort...

View Article


vMotion history of a single VM

Anyone have a script to get the vMotion history of a single VM?

View Article

Tracking the progress of task in the pipeline

Hi, Just wondering if there's a way to track the progress (% completed) of each task in the pipeline for a bunch of objects, and also run concurrent command in the pipeline. Don't think write-progress...

View Article

List Edge Gateways and their version - PowerCLI

I am looking for a way to list all Edge Gateways deployed in all my ORG VDCs within my vCD 5.6.4 instance. Does anyone have any documentation or examples of how I can find these Edge Gateways and their...

View Article
Browsing all 9071 articles
Browse latest View live


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