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

Run invoke-VMScript as administrator

hi, i was asked to write a script that gets a command and run it inside the a group of Vm's guest OS ( Windows). i was able to write the script and if works fine,my only problem is that some of my...

View Article


Image may be NSFW.
Clik here to view.

How to modify an existing Virtual Machine DRS -Group?

Hi,I use DRS-Rules to place VMs to a Group of selected Hosts within a Cluster.The poblem is, that I didn't find any methods to modify (add new VMs) to an existing "Virtual Machine DRS Group". AFAIK,...

View Article


How to share a vApp using PowerCLI

I would like to share a deployed vApp using PowerCLI. However, I can not find a commandlet which would do this. Any ideas? ThanksPaul

View Article

How to get the VM UUID

 hi,  anybody know how to get the "UUID" with the VI-ToolKit?  thx  

View Article

VM`s list with Disk and RDM details needed

Hi All, I have a scripts, which would give me list of below parameters Name    PowerStateIP AddressClusterESX HostFolderDatastore I would like to have disk info and RDM info along with its size. Please...

View Article


Add multiple SNMP traps destination locations

I'm trying to set multiple SNMP trap destinations, but can't seem to get the correct format. Any ideas? #Set Variables$communities="R3@d0nly"$trapDestinationA="1.1.1.1"$trapDestinationB="1.1.1.2"...

View Article

Image may be NSFW.
Clik here to view.

Error, while running the powershell script.

I am a newbie to Powershell, Please help, as I am getting below error while running the script Get-VM sql01 | Select Name, PowerState,@{N="IP Address";E={@($_.guest.IPAddress[0])}},...

View Article

Need to add vCenter & vShield connections with PowerCLI

Hi, I would like to automate vCloud deployement.It includes add of customer vCenter and vShield servers. How could I do that ?I don't find any cmdlets about that... the same for provider VDC  Thanks...

View Article


(503) Server Unavailable when calling Invoke-VMScript

Hello everyone, I'm having some trouble with Invoke-VMScript. It returns (503) Server Unavailable when invoking a script that takes pretty long to execute (about 8-10 minutes). The script is actually...

View Article


Image may be NSFW.
Clik here to view.

Need help in VMFS and RDM Report

Hi All, I would looking for similar output from a Powershell script. I am a newbie to Scripting. Please help.  Below is the script that I have and needs your help in getting the above format output....

View Article

how to import list of VM Names and ran a script against the imported list of VMs

Hi Guys, Can someone help me and integrate an import csv script (which contains a list of VMs) and ran the below script against the imported VMs to create an output csv file? Thanks alot in advance....

View Article

Invoke VM Script to create a SQL user

HiI am trying to create a sql user using powercli and invoke vm script. I got the script working locally on the vm using powershell but am trying to get this working now using the invoke vm script...

View Article

Powercli Script required to list all the clusters in a datacenter and all...

Hi ALL , I am new to powercli and trying to create  a script to list all the clusters in a datacentre and all hosts within a cluster and to calculate min , max and avg cpu and ram utilization per host...

View Article


Image may be NSFW.
Clik here to view.

VBScript / PowerShell - Output Power On / Shutdown commands to text file for...

Hi there, I'm trying to do what I think is a relatively simple thing that is, use Powershell to run a Power on / Shutdown command on a VM, and then log the output that happens when that Powershell...

View Article

Create new iSCSI datastores

Hi, I'm trying to scan my iSCSI HBA and create two datastores.  There are two LUNs presented to the hosts, both empty.  Trying this: $i = 0ForEach ($VMHost in $esxi_array){$i=$i+1 Get-VMHostStorage...

View Article


PowerCLI Move-Harddisk from csv file

Hi all, Been banging my head with this one its drving me mad hopefully someone can help please. I am using LucD excellent Orphaned files and folders - Spring cleaning - LucD notes script to identify...

View Article

OsCustomizationSpec and OSCustomizationNicMapping are they a good way to...

I am building a script to build VM's auto magicly when as I import the relevent information from a csv file.I have the newest version of PowerCli, I am trying to build Sever 2012 r2 servers from a...

View Article


powerstate, IP Address and Harddisk shows blank

Hi All, From below script, VM Powerstate, VM IP Address and VMFS Harddisk details shows blank, please help. $report = @()   $vms = Get-VM sql01 | Get-View foreach ($vm in $vms) {      foreach($dev in...

View Article

PowerShell remoting to install VMWare tools

Greetings Admittedly this is probably more focused on PowerShell and less on VMware but VMware tools is the target.  I am attempting to write a script to install VMware tools remotely onto VMs that...

View Article

Image may be NSFW.
Clik here to view.

CMDlets...scripts..

I have been trying for two days to just pipe out VM names, IPs and Mac addresses.  I just be able to just use this... $report =@ ()Get-VM | Get-View | %{$VMname = $_.Name$_.guest.net | where...

View Article
Browsing all 9071 articles
Browse latest View live


Latest Images

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