Create / Import host profile from existing config – PS PowerCLI

Share This: https://github.com/cann0nf0dder/PS_PowerCLI.git <# NAME: Import_Host_Profile.ps1 AUTHOR: Chris Danielewski DATE : 8/22/2017 PURPOSE: This script will import host profile from config location OUTPUT: N/A REQUIRED UTILITIES: PowerCLI, ========================================================================== CHANGE HISTORY: GE HISTORY: v1.0 8/23/2017 CD New script! #> param( [Parameter(Mandatory=$true)][String]$location ) #environemt $profile_name = “Imported_profile” $pathTOprofile = $location + “profile.vpf” $obj = Get-View ServiceInstance $hpobj […]
Continue reading…

 

Export last host profile – PS Powercli script

Share This: Quick script to export last host profile: https://github.com/cann0nf0dder/PS_PowerCLI.git <# NAME: Export_HostProfile.ps1 AUTHOR: Chris Danielewski DATE : 8/22/2017 PURPOSE: This script will export host profile to new pod config location. OUTPUT: N/A REQUIRED UTILITIES: PowerCLI, ========================================================================== CHANGE HISTORY: GE HISTORY: v1.0 8/22/2017 CD New script! #> param( [Parameter(Mandatory=$true)][String]$location ) #environemt $lastprof = @() $lastprof = […]
Continue reading…

 

vSphere ESXi Rolling reboots Safe powershell script – Calculate Cluster load / Safe MM

Share This:

 
Continue reading…

 

HPE Stackato 3.4.2 / 3.6.2 cloud deployment automated for vSphere – Powershell

Share This: Build template: In order to run the Invoke-VMscript cmdlet, we need to spin up stackato VM from ovf, install VMware tools, run some recent updates/patches and save this VM as template. Deploy stackato VM from OVF Open VM Console and configure OS: Login with stackato/stackato Reset stackato password to stackato123 using passwd Change […]
Continue reading…

 

Update all Host profiles from reference host script

Share This:

 
Continue reading…

 

Enable / Disable alerts on ESXi Cluster script

Share This:

 
Continue reading…

 

Configure all vDS port groups as Elastic script – vSphere 6.0 (vds 5/5.5)

Share This:

Tested on vSphere 6.0u1 vDS 5 and 5.5, Nov 2016
Continue reading…

 

vSphere 6u2 permissions vs perl SDK API calls.

Share This: Prior to upgrading to vSphere 6  (running 5.5) my user account had a read-only privileges on the vSphere object, Datacenter object, as well as some grater rights on clusters, vDS and datastore. Using Perl SDK to deploy new VM’s – vmcreate.pl worked fine. PowerCLI C:\Program Files (x86)\VMware\VMware vSphere CLI\Perl\apps\vm> perl .\vmcreate.pl –url https://vCenterServer.local:443/sdk/webService –filename C:\Sc ripts\XMLVM.xml –schema C:\Scripts\Schema.xsd […]
Continue reading…