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 ArticlePerformance 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 ArticleClone 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 ArticlePowershell 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 ArticleAutoDeploy - 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 ArticleSSH 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 ArticleAdd 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 ArticleAdvanced 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 Articlewhile 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 ArticleScript 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 ArticleSet-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 Articleneed 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 ArticleScript 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 ArticlePowercli 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 ArticleVM 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 ArticleAttempting 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 ArticleDetach 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 ArticleESXi 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 ArticlePowerCLI - 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 ArticleHelp 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