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

New-VM hangs during background job

I'm writing a script to automate some vm deployment and am having some issues with a background job.  If I run the code below, the new-vm command hangs and does not ever complete the job.  I have to...

View Article


Powercli Script to configure vCenter Alarms

Hello,I need to configure vCenter Alams on around 15 vCenters. Can anyone please provide me powercli script for vCenter 5.5 and 6.0 to configure these Alarms.Regards,VD

View Article


Find advanced vm settings

I need to see which vm advanced settings exist on a set of vms.  I have a file with a list of advanced settings in csv format as below.  How can I list these settings out for a vm?  by default I think...

View Article

Image may be NSFW.
Clik here to view.

Date from annotation comparison

Hi, I have to compare today's date +15d with date read from VM annotation. Here is the code for today + 15d: $Date = Get-Date -format "dd/MM/yyyy"$Date = [datetime]$Date$inTwoWeeks = $Date.AddDays(15)...

View Article

Snapshots

Hello everyone, I am looking for a script that will create a snapshot and will send me an email with any that failed and any that were successful. I have a simple script but i need more than what i...

View Article


Get-TagAssignment Entity includes custom field names (Bug?)

Our environment uses multiple CustomAttribute annotations on VMs. I've noticed that when I use Get-TagAssignment on VMs in our vCenter, the Entity object, which should be just a VM (VirtualMachineImpl)...

View Article

Image may be NSFW.
Clik here to view.

Script to convert 100+ servers from Thick to Thin Format

Hi All,I know there is an option to convert a VM from Thick to Thin format through GUI. But sad part is we have to keep an eye on the progress , datastore and all. I have 100's+ of VMs which are in...

View Article

OVFTool: vim API version: 6.0 - Panic: Win32 exception: Access Violation...

I have run across a problem using the below ovftool versions when uploading a VMX to Virtual Center 6.VMware ovftool 3.5.2 (build-1880279) <- windows Vmware workstation 10   ovftool...

View Article


Image may be NSFW.
Clik here to view.

how to get vm's Host cpu mhz by PowerCLI

how to get vm's Host cpu mhz by PowerCLI thanks 

View Article


Storage DRS recommendations

Is there a way with PowerCLI to get the Storage DRS recommendations?

View Article

Need to remove advanced values from VMX file

Previous administrator elected to harden the VMX files of all VMs to prevent unwanted downtime from individuals installing VMware tools upgrades manually. I agree with him and understand in prior...

View Article

PowerCLI 6.0 Get-VDPortGroup

I am in the process of using the Virtual Distributed Switch Cmdlets in doing so as I get my networks the results name now has a %2f in place of the / This to me seems like a bug in the cmdlet. Has...

View Article

Image may be NSFW.
Clik here to view.

Storage DRS query VM Overrides per datastore cluster

Hi guys, I'm trying to get a report of VM's where storage drs is set to disabled.I'm able to get a list of VM's where status is manual but VM's where storage drs is set to disabled are not shown with...

View Article


Find Virtual Machines with "Shared Folders" (HGFS) feature running

I am looking for some direction on creating a script to find all VM's with HGFS running, or where the feature is actually being used.   Apparently VMware posted this Security advisory VMSA-2016-0001 |...

View Article

Import-Module via scheduled task results in different $env:modulepath

Just upgraded to PowerCLI 6.0 R3Has anyone run into this?  I was updating my scheduled task scripts to start importing the module rather than adding the snapins, but for some reason when task scheduler...

View Article


Set starting directory in PowerCLI

So this may be a bit pedantic, but I'm sure others understand how you start trying to do something simple and it snowballs into a much larger issue. Well, I wanted to set the default directory I start...

View Article

AutoDeploy Precreation of AnswerFiles

I have a basic AutoDeploy setup working for version 5.5I'm now trying to move to a seamless setup for when a host has not previously been added to vCenter and provide an answerfileI'm using Script to...

View Article


assistance with daily reports dump?

hello! wondering if anyone can help out with this. i'm trying to create a scheduled task that'll generate a daily report of all VMs in vcenter. the info i'm looking to include is... VM NameCPU...

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

Image may be NSFW.
Clik here to view.

Move configuration files with PowerCLI?

Hi, Is it possible to move a VMs configuration files with PowerCli? Currently I have a script to empty a datastore, which basically move all harddisks associated with this datastore to another one....

View Article
Browsing all 9071 articles
Browse latest View live


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