Tag Archives: powercli

Migrate VMs between portgroups/virtual switches/vSS/vDS

I wrote this to help a client migrate to VXLAN from portgroups. It pulls from a CSV file named c:\scripts\ImportPortGroups.csv which is structured: VLAN,PortGroup,wire 123,dVLAN 123,192.168.123.0/24 and accepts the initial number (VLAN) as a commandline parameter such as: changeportgroups 123 … Continue reading

Posted in NSX, PowerShell, Scripting, Virtualization, VMware | Tagged , , , | Leave a comment

VCAP6-DCV Deploy Sample Question 11

Sample Question Intro HOL: HOL-1706-SDC-3 – Security Concepts in the Software Defined Data Center Prerequisites: None Lab: Module 3 : Automating Password Complexity for ESXi Users. Question 11 The Administration team has requested a PowerCLI script to update all ESXi … Continue reading

Posted in Certification, PowerShell, Scripting, Virtualization, VMware | Tagged , , , , | 5 Comments

vCloud Director – retain IP/Mac

I found myself in need of changing a network setting on a bunch of vCD vApps.  The setting in question (“Retain IP/MAC Resources” in the GUI, “RetainNetInfoAcrossDeployments” from the API) causes the vApp to retain it’s assigned IP (apparently by retaining … Continue reading

Posted in Cloud, Computing, PowerShell, Scripting, Virtualization, VMware | Tagged , , , | Leave a comment

P4C: pCLI for View Parameter seeks cmdlet for long-term relationship

There is a list of “View PowerCLI Cmdlet Parameters” in the View documentation but while they are very useful when you have a cmdlet you are trying to run, the descriptions listed in the doc do not include which cmdlets … Continue reading

Posted in PowerShell, Scripting, Virtualization, VMware | Tagged , , , , | Leave a comment

PowerCLI fling preview

In the 8am PowerCLI session at Vmworld we were treated to PowerCLI on a Mac via the Web Client. The Windows domination of VMware management is almost over! Thanks Alan for the preview!

Posted in Cloud, PowerShell, Virtualization, VMware | Tagged , , | Leave a comment

View and PowerCLI – Part 2

Part 1 So I wanted to do some checks to a VM in my environment, but I realized there were a few issues – was the vm on?  Was the guest responding? Could I make WMI calls? Turned out RPC … Continue reading

Posted in Computing, PowerShell, Virtualization, VMware | Tagged , | Leave a comment

VMWorld 2011 Day2

KeyNote (wow, any ThinApp app to any device via HTML5?) – Performance Metrics – Memory optimization – Lunch PowerCLI – HandsOnLabs – Partner Event – HandOnLabs

Posted in VMware | Tagged , , , | Leave a comment

vSphere5: My favorite feature

Get-AlarmDefinition | New-AlarmAction -Email -To ‘jandrews@inflexionllc.com’ -CC @(‘test1@inflexionllc.com’, ‘test2@inflexionllc.com.com’) -Body ‘Test body’ -Subject ‘Test subject’ Drop that line into a PowerCLI windows and poof all alarms will be updated to send an email when they go off (change warning (yellow) … Continue reading

Posted in Computing, PowerShell, Scripting, Virtualization, VMware | Tagged , , , , | 2 Comments

Enabling vMotion and converting a portgroup to a VMKernel port

I was asked a question the other day about “enabling vMotion.” The answer actually has 2-parts. Technically there is a parameter you need to have set in order for vMotion to be enabled on your host. “Migrate.Enabled” is an advanced … Continue reading

Posted in Cloud, Computing, Virtualization, VMware | Tagged , , , , | Leave a comment

PowerCLI poster

Download a PDF printable at 34″ x 22″ of everything about PowerCLI you need at your fingertips here: http://communities.vmware.com/thread/302399  

Posted in Computing, PowerShell, Scripting, Virtualization, VMware | Tagged , , , | Leave a comment