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

Prevent Entries Being Displayed in Recent Tasks

Hello All.  I have a rather unusal situation.  Normally IT staff we are constantly looking to extract more information from our technolgy.  However, in this case, I'm tried to hide or remove it.  I'm...

View Article


Performance Metrics and what they mean?

Hi Guys, I am running the following commands to get memory, cpu and metric stats for a vm: Get-Stat -Entity $VMName -Stat cpu.usage.average -Start $day1 -Finish $day2Get-Stat -Entity $VMName -Stat...

View Article


Image may be NSFW.
Clik here to view.

Clone OS disk only, script complete and working...

Hi guys, after some painful research and testing, I've finally finished a test release of a script that will clone a hot VM's OS disk whilst ignoring the other disks.  It seems that defining a VM...

View Article

Powershell script to see paths

Hi,Need a simple script to check how many paths are available from each vhba. Also need it to determine if there are any dead paths reported. Output :vmhba1 :Targets :2Devices:10Paths:9Dead Path...

View Article

AutoDeploy - General DeployRule vs. Specific DeployRule

Hey guys. My DeployRuleSet looks like this: Name        : ImageProfilePatternList :ItemList    : {ESXi5U1-HA}Name        : Host01PatternList : {mac=xx:xx:xx:xx:xx:xx}ItemList    : {Cluster1,...

View Article


SSH Session from Powercli

Hi, I manage to connect the esxi 4.1 hosts over ssh using powercli by following the instruction mentioned in the link:...

View Article

Add an Active Directory User to SSO Group

Does anyone have a script that can add an Active Directory User to an SSO Group? Since it does not appear that using AD "groups" with users from a different forrest  in the SSO groups works per VMware...

View Article

Advanced Customized VM Report.xls with name of the file as VMhostname

Hi Lucd & Team, Today is my first day into PowerCLI. We have to create a build sheet for every VM creation individually. Currently we need to create this individual build sheet for around 600 VM’s,...

View Article


while creating a datacenter using powercli getting error

Hello All, While creating a datacenter using power cli commands getting an error, PS C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> new-datacenter -name Test -location...

View Article


Script to list VM Network

Hi, I'm having trouble putting together a script that essentially seems simple enough but has me stupmed as I need to get the data from multiple locations.I need to gather all VM's and their network...

View Article

Set-NetworkAdapter for updating to Vmxnet3 on Windows 2008 R2

Hi, I am trying to update a number of VMs network adapter from e1000 to vmxnet3. I have seen some blogs about using the Set-NetworkAdapter commandlet, and sure enough it changes in vsphere client, but...

View Article

need help with PowerCli script to detach RDM devices not datastores

I have seen PowerCli scripts to detach datastores, but I need to detach RDM devices instead.  In a multi-node cluster, it's pretty tedious to go to every host and unmount the RDM device.  Please help...

View Article

Script to find overutilized virtual machines

Hello: Is there a way to find all overutilized virtual machines on the VC via script? for example, I want to find all Vms that are using more than 80% memory and/or CPU 10 minutes in a row or longer....

View Article


Powercli script to test VMPort Groups

Running into an issue and trying to work on script to automate the post host installation to validate that all VM ports groups trunked are working properly.  I would like to run the script against a...

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


Image may be NSFW.
Clik here to view.

Attempting to add custom annotations to an existing 'Export-VMInfo' script

Hi everyone! Running into some difficulties, going against a 4.1 cluster, with 5.1 PowerCLI client and could really use some help here, as this report is already pretty awsome, just need a bit more...

View Article

Detach a lun using datastore name?

All, (or Luc lol)   I am wanting to use the detach disk function, but instead of passing naa.id I'd like to be able to pass the datastore name of an already unmounted datastore to get the naa id . I...

View Article


ESXi 5.1 PowerCLI scripted install

Hi guys I have been given the doubtful honor of trying to sort someone else's script out, and I don't have any previous experience of scripting. The script is a PowerCLI script for vSphere 5.1 (was a...

View Article

PowerCLI - VM+Datastore+Annotations script help?

Can someone help me in getting this script to pull the annotations field of the VM's please?  Get-Datacenter | Get-Datastore | Foreach-Object {    $ds = $_.Name    $_ | Get-VM | Select-Object...

View Article

Help with script to gather cluster info

Hi  I know that this is something simple am just can't work it out  when I run this script  Connect-VIServer "XXXXXXX"$ClusterReport = @()Foreach($cluster in Get-Cluster ){    $esx = $cluster |...

View Article
Browsing all 16717 articles
Browse latest View live


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