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

Get-VMGuestRoute DNS resolves and truncates Gateway

Hi, I'm writing a script to get the default gateway of a system for migration to a 64bit OS, but when I run 'Get-VMGuestRoute -VM GuestVM |Select Gateway' against it I get:...

View Article


DiskSharesLevel per VM configuration

Hi,i'm trying to create a script that configures the DiskSharesLevel per VM and per VM HardDisk. Say i need to configure the value DiskSharesLevel to High for VM11 and VM1 has two hard disks, one with...

View Article


Dell BIOS version of ESX Hosts.

We use esxi 4.1 and virtual centre 4.1, and they are running on Dell Poweredge servers.  To be precise they are running Dell Poweredge R815.  Is there a script we can run to get the BIOS version of...

View Article

Get-VMHostAccount Alternative

Does anyone know of an alternivitve method to query the user accounts on a esxi host without connecting to it directly with Get-VMHostAccount? Using the Get-VMHostAccount cmdlet breaks our security...

View Article

VM Deployment with customization, parallel

All,  I am using a modified script I found on Jase's blog, (Thanks!) and it appears to be working great, but my big problem is it does one at a time.  I would like them to go in parallel. Is there...

View Article


Resource Pool Reporting

I'm working on a report (to be published via HTML) that will show the MemReservationMB of all Resource Pools (RP) in a cluster, then loop through any VMs within that RP and add up all of the RAM...

View Article

Report on VM's whose Vmware tools are out of date

Is it possible to get a script to show which virtual machines vmware tools are not installed or not up to date.  I have tried some scripts but they dont work.  Is its possible to get a listing of VM...

View Article

PowerCli script to upgrade esxi 4.1 to esxi 5.0 does not remediate

Hi everyone, I'm trying to use vcenter powercli update manager to attach basline then upgrade the host to 5.0. The strange thing is the script works but when the script does the remediation the host is...

View Article


Image may be NSFW.
Clik here to view.

Creating New-Alarms in vCenter

Any possible ways/ scripts available to create new alarm definitions in vCenter Server ..?Couldnt find any suitable cmdlet to create a new alarm definition .. -- Georgey

View Article


PowerCLI to email results

Hello, I'm looking to collect some specs from vCenter then email it to myself. It looks something like this. add-pssnapin VMware.VimAutomation.Coreconnect-viserver -server server -user username...

View Article

Set-VMHostAuthentication error

When I run the script:$ESXHOST = Read-Host "Enter ESX Host Name or IP"Connect-VIServer $ESXHOST$domain = "MyDomain"Write-Host "Join to domain $domain"$cred = Get-Credential # Prompt for the user and...

View Article

-disk StorageFormat parameter

Hello, I would like to convert thin disk to lazy zeroed thick so what shell I enter for -disk storageformat parameter below Get-VM “EXCHHUB1(1)“ | Move-VM -datastore (Get-datastore...

View Article

Report VMs added and deleted

I haven't been able to find anything that can do this...  Is therre a way (powercli or not) to report on VMs added and VMs removed for the last 6 months? (or longer?) Thanks in advance for your help.

View Article


Reporting On Multiple Virtual Centers and Exporting to CSV

Anybody, If possible does anyone know a way for me to get the following in the following format. Requirements: 1) Report on Multiple Virtual Centers2) Export Results to CSV or Excel with a title...

View Article

Setting EPT/MMU mode on a VM

Does anyone have handy a script to set the CPU/MMU Virtualization field on a VM? "Edit Settings... > Options > CPU/MMU Virtualization > Etc"

View Article


Command New-Snapshot crashes on windows clusters vms

Hi,I have two VMs thata are cluetered windows Vms.When I run the command New-snapshot to get snapshot to this VMs the shell freezes.Al other VMs completed OK,Can you help?

View Article

Where are the autodeploy cmdlets now ??

Hi all Could some kind soul please help me .. I Installed this new version of the vsphere PowerCli VMware-PowerCLI-5.0.1-581491.exe Following the vmware documentationI set the Execution Policyand then...

View Article


Image may be NSFW.
Clik here to view.

How to get IP/MAC info of ILO board as shown in hardware status tab

Hi, I know that there are HP scripts to collect IPC/MAC info of ILO board (hpconfg get_network.xml) and then use VMware powercli IPMI script to feed DPM.as published on...

View Article

auto-picking vmhost, datastore, etc.

I want to write some general libraries to "auto-choose" a vm host and datastore based on some kind of scoring system. I'd take into account things like available CPU and memory, total amount of CPU and...

View Article

I want my report to look better

I have a daily report that I wrote and I really want to rewrite it, I would like it to be much neater looking, and I just want an overall better look to it.  Of course I'm aware of the fabulous vCheck...

View Article
Browsing all 16717 articles
Browse latest View live


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