full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/vdsMenu/vdsMenu.ps1
vdsMenu.ps1
#Start of vdsMenu function vdsMenu { do { do { Write-Host "Make sure you are connected to a vCenter" -ForegroundColor Yellow Write-Host "`nvdsMenu" -BackgroundColor White -ForegroundColor Black Write-Host " A. Create VDS B. Create dvPortgroup C. Add hosts to VDS D. Load...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/vdsMenu/AddDpg.ps1
AddDpg.ps1
#start of function Function AddDpg { <# .SYNOPSIS Add dvportgroups to a dvswitch. .DESCRIPTION This will create a csv file whcih is opened in excel. Once you popuate the details, you have to save & close it. Hit return/enter to proceed and the script will add the dvportgroups to a chosen dvs...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/vdsMenu/PgVssToVds.ps1
PgVssToVds.ps1
#start of function function PgVssToVds { <# .SYNOPSIS Migrate Portgroup from Vss to Vds. .DESCRIPTION This will migrate vmkernel portgroup from vswitch to dvswitch .NOTES File Name : PgVssToVds.ps1 Author : gajendra d ambi Date : June 2016 Prerequisite : Powe...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/vdsMenu/CreateVds.ps1
CreateVds.ps1
#start of function Function CreateVds { <# .SYNOPSIS Create VDS. .DESCRIPTION This will create a vds on a chosen datacenter.. .NOTES File Name : CreateVds.ps1 Author : gajendra d ambi Date : March 2016 Prerequisite : PowerShell v4+, powercli 6+ over win7 and...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/vdsMenu/HostVds.ps1
HostVds.ps1
#start of function Function HostVds { <# .SYNOPSIS Add Esxi host to distributed switch. .DESCRIPTION This will create a csv file whcih is opened in excel. Once you popuate the details, you have to save & close it. Hit return/enter to proceed and the script will add the esxi hosts to a chosen...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/vdsMenu/vdsLoadBalancingMenu/Setlbsm.ps1
Setlbsm.ps1
#start of function Function Setlbsm { <# .SYNOPSIS Set LoadBalanceSrcMac on VDS. .DESCRIPTION This will set the loadbalancing on the vds as LoadBalanceSrcMac. .NOTES File Name : Setlbsm.ps1 Author : gajendra d ambi Date : March 2016 Prerequisite : PowerShell...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/vdsMenu/vdsLoadBalancingMenu/vdsLoadBalancingMenu.ps1
vdsLoadBalancingMenu.ps1
#Start of vdsLoadBalancingMenu function vdsLoadBalancingMenu { do { do { Write-Host "Make sure you are connected to a vCenter" -ForegroundColor Yellow Write-Host "`nvdsLoadBalancingMenu" -BackgroundColor White -ForegroundColor Black Write-Host " A. LoadBalanceIP B. LoadBalanceLoadB...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/vdsMenu/vdsLoadBalancingMenu/Setllb.ps1
Setllb.ps1
#start of function Function Setllb { <# .SYNOPSIS Set LoadBalanceLoadBased on VDS. .DESCRIPTION This will set the loadbalancing on the vds as LoadBalanceLoadBased. .NOTES File Name : Setllb.ps1 Author : gajendra d ambi Date : March 2016 Prerequisite : PowerS...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/vdsMenu/vdsLoadBalancingMenu/Setlbsi.ps1
Setlbsi.ps1
#start of function Function Setlbsi { <# .SYNOPSIS Set LoadBalanceSrcId on VDS. .DESCRIPTION This will set the loadbalancing on the vds as LoadBalanceSrcId. .NOTES File Name : Setlbsi.ps1 Author : gajendra d ambi Date : March 2016 Prerequisite : PowerShell v...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/vdsMenu/vdsLoadBalancingMenu/Setef.ps1
Setef.ps1
#start of function Function Setef { <# .SYNOPSIS Set ExplicitFailover on VDS. .DESCRIPTION This will set the loadbalancing on the vds as ExplicitFailover. .NOTES File Name : Setef.ps1 Author : gajendra d ambi Date : March 2016 Prerequisite : PowerShell v4+, ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/vdsMenu/vdsLoadBalancingMenu/SetLbip.ps1
SetLbip.ps1
#start of function Function SetLbip { <# .SYNOPSIS Set LoadBalanceIP on VDS. .DESCRIPTION This will set the loadbalancing on the vds as LoadBalanceIP. .NOTES File Name : SetLbip.ps1 Author : gajendra d ambi Date : March 2016 Prerequisite : PowerShell v4+, po...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/PgSync.ps1
PgSync.ps1
#start of function function PgSync { <# .SYNOPSIS Sync portgroups properties with vSwitch .DESCRIPTION This will make the portgroup to sync itself with the vswitch's settings. this will make the portgroup inherit the following from the vSwitch LoadBalancingPolicy NetworkFailoverDetectionPolicy ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/VssVmPg.ps1
VssVmPg.ps1
#start of function Function VssVmPg { <# .SYNOPSIS update virtual machine portgroup on vSwitch. .DESCRIPTION This will update virtual machie portgroup on a chosen standard vSwitch of hosts of a chosen cluster. .NOTES File Name : VssVmPg.ps1 Author : gajendra d ambi Date ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/VssMtu.ps1
VssMtu.ps1
#start of function Function VssMtu { <# .SYNOPSIS update Mtu on vSwitch. .DESCRIPTION This will update Mtu on a chosen standard vSwitch of hosts of a chosen cluster. .NOTES File Name : VssMtu.ps1 Author : gajendra d ambi Date : March 2016 Prerequisite : ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/VssMenu.ps1
VssMenu.ps1
#Start of VssMenu Function VssMenu { do { do { Write-Host -BackgroundColor White -ForegroundColor Black "`nVssMenu" Write-Host " A. Create vSwitch B. Update NumPorts C. Update Nic D. Update MTU E. Enable AllowPromiscuous F. Enable ForgedTransmits ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/VssMcOn.ps1
VssMcOn.ps1
#start of function Function VssMcOn { <# .SYNOPSIS Allow promiscous mode .DESCRIPTION This will allow promiscous mode on a vswitch. .NOTES File Name : VssMcOn.ps1 Author : gajendra d ambi Date : March 2016 Prerequisite : PowerShell v4+, powercli 6+ over win7 ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/VssMcOff.ps1
VssMcOff.ps1
#start of function Function VssMcOff { <# .SYNOPSIS Allow promiscous mode .DESCRIPTION This will allow promiscous mode on a vswitch. .NOTES File Name : VssMcOff.ps1 Author : gajendra d ambi Date : March 2016 Prerequisite : PowerShell v4+, powercli 6+ over win...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/PgVlan.ps1
PgVlan.ps1
#start of function Function PgVlan { <# .SYNOPSIS update virtual machine portgroup's Vlan on vSwitch. .DESCRIPTION This will update virtual machine portgroup's Vlan on a chosen portgroup of hosts of a chosen cluster. .NOTES File Name : PgVlan.ps1 Author : gajendra d ambi ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/l3vmotion_2.ps1
l3vmotion_2.ps1
#start of function function l3vmotion { <# .SYNOPSIS Configure l3 vmotion. .DESCRIPTION It will create the l3 vmotion portgroup add vmk to the portgroup assign vlan to the portgroup add ip, subnet mask to the portgroup enable netstack l3 vmotion for the portgroup 1. update t...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/shootVmk.ps1
shootVmk.ps1
#start of function shootVmk function shootVmk { <# .SYNOPSIS delete vmkernel .DESCRIPTION This will remove the vmkernel from hosts. you can do this for standard or virtual portgroup and then delete the portgroup. .NOTES File Name : shootVmk.ps1 Author : gajendra d ambi Date ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/Pglbsi.ps1
Pglbsi.ps1
#start of function Function Pglbsi { <# .SYNOPSIS update virtual machine portgroup's loadbalancing to LoadBalanceSrcId on vSwitch. .DESCRIPTION This will update virtual machine portgroup's loadbalancing to LoadBalanceSrcId on a chosen standard portgroup of hosts of a chosen cluster. .NOTES Fil...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/Pglbsm.ps1
Pglbsm.ps1
#start of function Function Pglbsm { <# .SYNOPSIS update virtual machine portgroup's loadbalancing to LoadBalanceSrcMac on vSwitch. .DESCRIPTION This will update virtual machine portgroup's loadbalancing to LoadBalanceSrcMac on a chosen standard portgroup of hosts of a chosen cluster. .NOTES F...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/VssPmOn.ps1
VssPmOn.ps1
#start of function Function VssPmOn { <# .SYNOPSIS Allow promiscous mode .DESCRIPTION This will allow promiscous mode on a vswitch. .NOTES File Name : VssPmOn.ps1 Author : gajendra d ambi Date : March 2016 Prerequisite : PowerShell v4+, powercli 6+ over win7...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/PgRename.ps1
PgRename.ps1
#start of function Function PgRename { <# .SYNOPSIS update virtual machine portgroup's name on vSwitch. .DESCRIPTION This will update virtual machine portgroup's name on a chosen standard vSwitch of hosts of a chosen cluster. .NOTES File Name : PgRename.ps1 Author : gajendra ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/L3VmotionGateway.ps1
L3VmotionGateway.ps1
#Start of function L3VmotionGateway function L3VmotionGateway { <# .SYNOPSIS Gets the plink .DESCRIPTION This will create l3gateway to esxi hosts. .NOTES File Name : L3VmotionGateway.ps1 Author : gajendra d ambi Date : March 2017 Prerequisite : PowerShell v4+...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/VssFtOff.ps1
VssFtOff.ps1
#start of function Function VssFtOff { <# .SYNOPSIS Allow promiscous mode .DESCRIPTION This will allow promiscous mode on a vswitch. .NOTES File Name : VssFtOff.ps1 Author : gajendra d ambi Date : March 2016 Prerequisite : PowerShell v4+, powercli 6+ over wi...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/l3vmotion.ps1
l3vmotion.ps1
#start of function function l3vmotion { <# .SYNOPSIS Configure l3 vmotion. .DESCRIPTION It will create the l3 vmotion portgroup add vmk to the portgroup assign vlan to the portgroup add ip, subnet mask to the portgroup enable netstack l3 vmotion for the portgroup 1. update t...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/ShootVmkPg.ps1
ShootVmkPg.ps1
#start of function function ShootVmkPg { <# .SYNOPSIS Remove vmkernel portgroup .DESCRIPTION This will remove the virtual machine portgroup of all the hosts of a cluster/clusters. .NOTES File Name : ShootVmkPg.ps1 Author : gajendra d ambi Date : March 2016 Prer...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/shootVss.ps1
shootVss.ps1
function ShootVss # Start of function { <# .SYNOPSIS Remove standard virtual switch .DESCRIPTION This is an onging VMware tool to help those with an VMware environment to automate certain repetative tasks .NOTES File Name : ShootVss.ps1 Author : gajendra d ambi Date ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/VssPmOff.ps1
VssPmOff.ps1
#start of function Function VssPmOff { <# .SYNOPSIS Allow promiscous mode .DESCRIPTION This will allow promiscous mode on a vswitch. .NOTES File Name : VssPmOff.ps1 Author : gajendra d ambi Date : March 2016 Prerequisite : PowerShell v4+, powercli 6+ over win...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/VssVmPg1.ps1
VssVmPg1.ps1
#start of function Function VssVmPg1 { <# .SYNOPSIS update virtual machine portgroup on vSwitch. .DESCRIPTION This will update virtual machie portgroup on a chosen standard vSwitch of hosts of a chosen cluster. .NOTES File Name : VssVmPg1.ps1 Author : gajendra d ambi Date...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/VssPorts.ps1
VssPorts.ps1
#start of function Function VssPorts { <# .SYNOPSIS update portgroups on vSwitch. .DESCRIPTION This will update portgroups on a chosen standard vSwitch of hosts of a chosen cluster. .NOTES File Name : VssPorts.ps1 Author : gajendra d ambi Date : March 2016 ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/VssVmkPg.ps1
VssVmkPg.ps1
#start of function Function VssVmkPg { <# .SYNOPSIS update vmkernel portgroup on vSwitch. .DESCRIPTION This will update vmkernel portgroup on a chosen standard vSwitch of hosts of a chosen cluster. .NOTES File Name : VssVmkPg.ps1 Author : gajendra d ambi Date :...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/Pglbip.ps1
Pglbip.ps1
#start of function Function Pglbip { <# .SYNOPSIS update virtual machine portgroup's loadbalancing to LoadBalanceIP on vSwitch. .DESCRIPTION This will update virtual machine portgroup's loadbalancing to LoadBalanceIP on a chosen standard portgroup of hosts of a chosen cluster. .NOTES File Name...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/ShootVmPg.ps1
ShootVmPg.ps1
#start of function Function ShootVmPg { <# .SYNOPSIS Remove virtual machine portgroup .DESCRIPTION This will remove the virtual machine portgroup of all the hosts of a cluster/clusters. .NOTES File Name : ShootVmPg.ps1 Author : gajendra d ambi Date : March 2016 ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/VssVmkPg1.ps1
VssVmkPg1.ps1
#start of function Function VssVmkPg1 { <# .SYNOPSIS update vmkernel portgroup on vSwitch. .DESCRIPTION This will update vmkernel portgroup on a chosen standard vSwitch of hosts of a chosen cluster. .NOTES File Name : VssVmkPg1.ps1 Author : gajendra d ambi Date ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/Pgef.ps1
Pgef.ps1
#start of function Function Pgef { <# .SYNOPSIS update virtual machine portgroup's loadbalancing to ExplicitFailover on vSwitch. .DESCRIPTION This will update virtual machine portgroup's loadbalancing to ExplicitFailover on a chosen standard portgroup of hosts of a chosen cluster. .NOTES File ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/CreateVss.ps1
CreateVss.ps1
#start of function Function CreateVss { <# .SYNOPSIS Create standard vSwitch. .DESCRIPTION This will create a standard vSwitch of hosts of a chosen cluster. .NOTES File Name : CreateVss.ps1 Author : gajendra d ambi Date : March 2016 Prerequisite : PowerS...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/VssFtOn.ps1
VssFtOn.ps1
#start of function Function VssFtOn { <# .SYNOPSIS Allow promiscous mode .DESCRIPTION This will allow promiscous mode on a vswitch. .NOTES File Name : VssFtOn.ps1 Author : gajendra d ambi Date : March 2016 Prerequisite : PowerShell v4+, powercli 6+ over win7...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/NicMenu/NicStatusVss.ps1
NicStatusVss.ps1
#start of function function NicStatusVss { <# .SYNOPSIS Change nic teaming of nics. .DESCRIPTION This will change the nic status on vSwitchs .NOTES File Name : NicStatusVss.ps1 Author : gajendra d ambi Date : July 2016 Prerequisite : PowerShell v4+, powercli ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/NicMenu/NicStatusPg.ps1
NicStatusPg.ps1
#Start of function function NicStatusPg { <# .SYNOPSIS Change nic teaming of nics. .DESCRIPTION This will change the nic status on portgroups .NOTES File Name : NicStatusPg.ps1 Author : gajendra d ambi Date : July 2016 Prerequisite : PowerShell v4+, powercli ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/NicMenu/NicMenu.ps1
NicMenu.ps1
#Start of NicMenu function NicMenu { do { do { Write-Host "`NicMenu" -BackgroundColor White -ForegroundColor Black Write-Host " A. vSwitch B. portgroup " #options to choose from Write-Host " X. Previous Menu Y. Main Menu Z. Exit" -BackgroundColor Bla...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/archive/l3vmotion_old.ps1
l3vmotion_old.ps1
#start of function function l3vmotion { <# .SYNOPSIS Configure l3 vmotion. .DESCRIPTION You must have created an l3 vmotion portgroup before it configures it. 1. create a vmkernel portgorup, select your vSwitch with tcp ip stack as vmotion but with everything else as default (leave portgroup n...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VssMenu/PgMenu/PgMenu.ps1
PgMenu.ps1
#Start of VssMenu Function PgMenu { do { do { Write-Host -BackgroundColor White -ForegroundColor Black "`nVssMenu" Write-Host " A. Create VM Portgroup B. Create VMkernel Portgroup C. Rename Portgroup D. Update Portgroup's Vlan E. Delete VM Portgroup F. Dele...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/ClusterMenu/ConfigHA.ps1
ConfigHA.ps1
#start of function Function ConfigHA { <# .SYNOPSIS Configure HA on the cluster. .DESCRIPTION This will configure Ha on a specified cluster. It will enable HA disable admission control if the number of hosts is less than or equal to 3 set the vm monitoring policy. .NOTES File Name ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/ClusterMenu/AddDatastores.ps1
AddDatastores.ps1
#start of function Function AddDatastores { <# .SYNOPSIS Add datastores to a cluster. .DESCRIPTION This will create a csv file whcih is opened in excel. Once you popuate the details, you have to save & close it. Hit return/enter to proceed and the script will add the datastores to the 1st ho...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/ClusterMenu/ConfigDrs.ps1
ConfigDrs.ps1
#start of function Function ConfigDrs { <# .SYNOPSIS Configure DRS on the cluster. .DESCRIPTION This will configure DRS on a specified cluster. .NOTES File Name : ConfigDrs.ps1 Author : gajendra d ambi Date : March 2016 Prerequisite : PowerShell v4+, powercl...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/ClusterMenu/AddHosts.ps1
AddHosts.ps1
#start of function Function AddHosts { <# .SYNOPSIS Add hosts to cluster. .DESCRIPTION This will add hosts to the specified clusters. The function will create a csv file which can be opened in excel. populate the values under their respective headers in the excel. save it. close it. Hit return/ente...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/ClusterMenu/CreateVapp.ps1
CreateVapp.ps1
#start of function Function CreateVapp { <# .SYNOPSIS Create new vApp. .DESCRIPTION This will create vApp in a cluster. It is very easy and less time consuming to do manually but the motto here is 'manual is an evil when you are automating' and most importantly in future this might have more option...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/ClusterMenu/CreateCluster.ps1
CreateCluster.ps1
#start of function Function CreateCluster { <# .SYNOPSIS Create CreateCluster DRS Rule. .DESCRIPTION This uses custom functions to create DRS CreateCluster rules between VMs where VMs will be made to stay on the same host by the DRS. .NOTES File Name : CreateCluster.ps1 Author : ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/ClusterMenu/ClusterMenu.ps1
ClusterMenu.ps1
#Start of ClusterMenu function ClusterMenu { do { do { Write-Host "Make sure you are connected to a vCenter" -ForegroundColor Yellow Write-Host "`nClusterMenu" -BackgroundColor White -ForegroundColor Black Write-Host " A. Create Cluster B. Add Hosts C. Configure HA D. C...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/ClusterMenu/DrsRulesMenu/VMAffinity.ps1
VMAffinity.ps1
#start of function Function VMAffinity { <# .SYNOPSIS Create VMAffinity DRS Rule. .DESCRIPTION This uses custom functions to create DRS VMAffinity rules between VMs where VMs will be made to stay on the same host by the DRS. .NOTES File Name : VMAffinity.ps1 Author : gajendra d a...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/ClusterMenu/DrsRulesMenu/DrsRulesMenu.ps1
DrsRulesMenu.ps1
#Start of DrsRulesMenu function DrsRulesMenu { do { do { Write-Host "Make sure you are connected to a vCenter" -ForegroundColor Yellow Write-Host "`nDrsRulesMenu" -BackgroundColor White -ForegroundColor Black Write-Host " A. VMAffinity B. VMAntiAffinity C. DrsVmGroup D. D...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/ClusterMenu/DrsRulesMenu/New-DrsVmGroup.ps1
New-DrsVmGroup.ps1
Function New-DrsVmGroup { <# .SYNOPSIS Creates a new DRS VM group .DESCRIPTION This function creates a new DRS VM group in the DRS Group Manager .NOTES Author: Arnim van Lieshout .PARAMETER VM The VMs to add to the group. Supports objects from the pipeline. .PARAMETER Cluster The cluster to create ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/ClusterMenu/DrsRulesMenu/VMAntiAffinity.ps1
VMAntiAffinity.ps1
#start of function Function VMAntiAffinity { <# .SYNOPSIS Create VMAntiAffinity DRS Rule. .DESCRIPTION This uses custom functions to create DRS VMAntiAffinity rules between VMs where VMs will be made to stay on different hosts by the DRS. .NOTES File Name : VMAntiAffinity.ps1 Author ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/ClusterMenu/DrsRulesMenu/DRSVMToHostRule.ps1
DRSVMToHostRule.ps1
#start of function Function DRSVMToHostRule { <# .SYNOPSIS Create DRSVMToHostRule DRS Rule. .DESCRIPTION This uses custom functions to create DRS DRSVMToHostRule rules between VMs where VMs will be made to stay on the same host by the DRS. .NOTES File Name : DRSVMToHostRule.ps1 Author ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/ClusterMenu/DrsRulesMenu/New-DRSVMToHostRule.ps1
New-DRSVMToHostRule.ps1
Function New-DRSVMToHostRule { <# .SYNOPSIS Creates a new DRS VM to host rule .DESCRIPTION This function creates a new DRS vm to host rule .NOTES Author: Arnim van Lieshout .PARAMETER VMGroup The VMGroup name to include in the rule. .PARAMETER HostGroup The VMHostGroup name to include in the rule. ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/ClusterMenu/DrsRulesMenu/DrsVmGroup.ps1
DrsVmGroup.ps1
#start of function Function DrsVmGroup { <# .SYNOPSIS Create DrsVmGroup DRS Rule. .DESCRIPTION This uses custom functions to create DRS DrsVmGroup rules between VMs where VMs will be made to stay on the same host by the DRS. .NOTES File Name : DrsVmGroup.ps1 Author : gajendra d a...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/ClusterMenu/DrsRulesMenu/DrsHostGroup.ps1
DrsHostGroup.ps1
#start of function Function DrsHostGroup { <# .SYNOPSIS Create DrsHostGroup DRS Rule. .DESCRIPTION This uses custom functions to create DRS DrsHostGroup rules between VMs where VMs will be made to stay on the same host by the DRS. .NOTES File Name : DrsHostGroup.ps1 Author : gaje...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/ClusterMenu/DrsRulesMenu/New-DrsHostGroup.ps1
New-DrsHostGroup.ps1
Function New-DrsHostGroup { <# .SYNOPSIS Creates a new DRS host group .DESCRIPTION This function creates a new DRS host group in the DRS Group Manager .NOTES Author: Arnim van Lieshout .PARAMETER VMHost The hosts to add to the group. Supports objects from the pipeline. .PARAMETER Cluster The clust...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/vCenterMenu/VMMenu/VMMenu.ps1
VMMenu.ps1
#Start of VMMenu Function VMMenu { do { do { Write-Host -BackgroundColor White -ForegroundColor Black "`nVMMenu" Write-Host " A. Create vSwitch B. Update NumPorts " #options to choose from... Write-Host " X. Previous Menu Y. Main Menu Z. Exit ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/Standalone Hosts/shRenamePg.ps1
shRenamePg.ps1
#start of function function shRenamePg { <# .SYNOPSIS Create New VMware Standard Switch on all hosts .DESCRIPTION This will need the 1st host's ip address and the number of subsequent hosts that you want to configure(which should be in series of the ip address). Lets say you have 10 esxi hosts and ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/Standalone Hosts/shNewVMPg.ps1
shNewVMPg.ps1
#start of function function shNewVMPg { <# .SYNOPSIS Create New VMware Standard Swiportgroup on all hosts .DESCRIPTION This will need the 1st host's ip address and the number of subsequent hosts that you want to configure(which should be in series of the ip address). Lets say you have 10 esxi hosts...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/Standalone Hosts/shAddNic.ps1
shAddNic.ps1
#start of function function shAddNic { <# .SYNOPSIS Create New VMware Standard Switch on all hosts .DESCRIPTION This will need the 1st host's ip address and the number of subsequent hosts that you want to configure(which should be in series of the ip address). Lets say you have 10 esxi hosts and th...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/Standalone Hosts/shShootVmkPg.ps1
shShootVmkPg.ps1
#start of function function shShootVmkPg { <# .SYNOPSIS Create New VMware Standard Switch on all hosts .DESCRIPTION This will need the 1st host's ip address and the number of subsequent hosts that you want to configure(which should be in series of the ip address). Lets say you have 10 esxi hosts an...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/Standalone Hosts/shShootVmPg.ps1
shShootVmPg.ps1
#start of function function shShootVmPg { <# .SYNOPSIS Create New VMware Standard Switch on all hosts .DESCRIPTION This will need the 1st host's ip address and the number of subsequent hosts that you want to configure(which should be in series of the ip address). Lets say you have 10 esxi hosts and...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/Standalone Hosts/shGetShHosts.ps1
shGetShHosts.ps1
#start of function function shGetShHosts { <# .SYNOPSIS Connect to standalone hosts .DESCRIPTION This will get the 1st host's ip address and increment it to a number specified by the user and connect to all of them. .NOTES File Name : shGetShHosts.ps1 Author : gajendra d ambi ...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/Standalone Hosts/StandHostsMenu.ps1
StandHostsMenu.ps1
#Start of StandHostsMenu function StandHostsMenu { do { do { Write-Host "`StandHostsMenu" -BackgroundColor White -ForegroundColor Black Write-Host " A. Connect to standalone hosts B. Create virtual Standard Switch C. Create virtual Machine Portgroup D. Create VMkernel Po...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/Standalone Hosts/shNewVMkernelPg.ps1
shNewVMkernelPg.ps1
#start of function function shNewVMkernelPg { <# .SYNOPSIS Create New VMware Standard Swiportgroup on all hosts .DESCRIPTION This will need the 1st host's ip address and the number of subsequent hosts that you want to configure(which should be in series of the ip address). Lets say you have 10 esxi...
PowerShellCorpus/Github/MrAmbiG_vmware/vTool/vToolMenus/MainMenu/Standalone Hosts/shNewVss.ps1
shNewVss.ps1
#start of function function shNewVss { <# .SYNOPSIS Create New VMware Standard Switch on all hosts .DESCRIPTION This will need the 1st host's ip address and the number of subsequent hosts that you want to configure(which should be in series of the ip address). Lets say you have 10 esxi hosts and th...
PowerShellCorpus/Github/MrAmbiG_vmware/Testing/SyncEsxiNet_old.ps1
SyncEsxiNet_old.ps1
function SyncEsxiNet { <# .SYNOPSIS Clones the Standard network configuration. .DESCRIPTION This will clone the vswitchs, portgroups .NOTES File Name : SyncEsxiNet.ps1 Author : gajendra d ambi Date : May 2016 Prerequisite : PowerShell v4+, powercli 6.3+ over w...
PowerShellCorpus/Github/MrAmbiG_vmware/Testing/RenameHosts.ps1
RenameHosts.ps1
#start of function Function RenameHosts { <# .SYNOPSIS Rename Hosts by accessing them via ip address. .DESCRIPTION This will .NOTES File Name : RenameHosts.ps1 Author : gajendra d ambi Date : June 2016 Prerequisite : PowerShell v4+, powercli 6+ over win7 and...
PowerShellCorpus/Github/MrAmbiG_vmware/Testing/WinScp.ps1
WinScp.ps1
function WinScp { <# .SYNOPSIS Upload files via scp .DESCRIPTION This will upload files to the target via scp .NOTES File Name : WinScp.ps1 Author : gajendra d ambi updated : August 2016 Prerequisite : PowerShell v4+, powercli 6+ over win7 and upper. Copyrigh...
PowerShellCorpus/Github/MrAmbiG_vmware/Testing/GetPscp.ps1
GetPscp.ps1
#Start of function function GetPscp { <# .SYNOPSIS Gets the Pscp .DESCRIPTION This will make sure Pscp is either downloaded from the internet if it is not present and if it cannot download then it will pause the script till you copy it manually. .NOTES File Name : GetPscp.ps1 Au...
PowerShellCorpus/Github/MrAmbiG_vmware/Testing/dummy.ps1
dummy.ps1
Connect-VIServer 10.12.212.49 -User administrator@vsphere.local -Password VMwar3!!
PowerShellCorpus/Github/MrAmbiG_vmware/Testing/PgVssToVds.ps1
PgVssToVds.ps1
#start of function function PgVssToVds { <# .SYNOPSIS Migrate Portgroup from Vss to Vds. .DESCRIPTION This will migrate vmkernel portgroup from vswitch to dvswitch .NOTES File Name : PgVssToVds.ps1 Author : gajendra d ambi Date : June 2016 Prerequisite : Powe...
PowerShellCorpus/Github/MrAmbiG_vmware/Testing/SetMtu.ps1
SetMtu.ps1
function VssMtuMenu { <# .SYNOPSIS Set mtu. .DESCRIPTION This will set mtu for vswitch, dvswitch, portgroup, dvportgroup .NOTES File Name : VssMtuMenu.ps1 Author : gajendra d ambi Date : September 2016 Prerequisite : PowerShell v4+, powercli 6.3+ over win7 and...
PowerShellCorpus/Github/MrAmbiG_vmware/Testing/SyncEsxiNet_2.ps1
SyncEsxiNet_2.ps1
function SyncEsxiNet { <# .SYNOPSIS Clones the Standard network configuration. .DESCRIPTION This will clone the vswitchs, portgroups .NOTES File Name : SyncEsxiNet.ps1 Author : gajendra d ambi Date : May 2016 Prerequisite : PowerShell v4+, powercli 6.3+ over w...
PowerShellCorpus/Github/MrAmbiG_vmware/Testing/SyncEsxiNet.ps1
SyncEsxiNet.ps1
function SyncEsxiNet { <# .SYNOPSIS Clones the Standard network configuration. .DESCRIPTION This will clone the vswitchs, portgroups .NOTES File Name : SyncEsxiNet.ps1 Author : gajendra d ambi Date : May 2016 Prerequisite : PowerShell v4+, powercli 6.3+ over w...
PowerShellCorpus/Github/MrAmbiG_vmware/Testing/l3vmotiongw.ps1
l3vmotiongw.ps1
#connect-viserver 10.12.214.150 -User administrator@vsphere.local -Password VMwar3!! $vmhosts = get-cluster AMP2_Mgmt | get-vmhost | sort $vmhost = $vmhosts[0] $esxcli = get-vmhost $vmhost| get-esxcli $pg = "test" $gw = "10.108.67.1" $nw = "10.108.67.0/24" $vmk = "vmk7" $ip = "10.108.67.67" $mask = "255...
PowerShellCorpus/Github/MrAmbiG_vmware/Testing/iscsimenu/softIscsi.ps1
softIscsi.ps1
#start of function function softIscsi { <# .SYNOPSIS enable software iscsi adapater .DESCRIPTION enable software iscsi adapater .NOTES File Name : softIscsi.ps1 Author : gajendra d ambi Date : march 2017 Prerequisite : PowerShell v4+, powercli 6+ over win7 an...
PowerShellCorpus/Github/MrAmbiG_vmware/Testing/iscsimenu/IscsiMenu.ps1
IscsiMenu.ps1
#Start of IscsiMenu function IscsiMenu { do { do { Write-Host "Make sure you are connected to a vCenter" -ForegroundColor Yellow Write-Host "`nIscsiMenu" -BackgroundColor White -ForegroundColor Black Write-Host " A. enable software iscsi adapter B. pin vmk to software iscsi adapter ...
PowerShellCorpus/Github/MrAmbiG_vmware/Testing/iscsimenu/vmkpin.ps1
vmkpin.ps1
#start of function function vmkpin { <# .SYNOPSIS pin vmk to software iscsi. .DESCRIPTION pin vmk to software iscsi .NOTES File Name : vmkpin.ps1 Author : gajendra d ambi Date : march 2017 Prerequisite : PowerShell v4+, powercli 6+ over win7 and upper. C...
PowerShellCorpus/Github/MrAmbiG_vmware/Archive/IPhash.ps1
IPhash.ps1
<# .SYNOPSIS This will set the ip hashing on the mentioned vswtchs. .DESCRIPTION You have to mention the name of the cluster and vswitchs for it to change the load balancing to ip hash. .NOTES File Name : IPhash.ps1 Author : gajendra d ambi Date : October 2015 Prer...
PowerShellCorpus/Github/MrAmbiG_vmware/Archive/ShutdownVI.ps1
ShutdownVI.ps1
#Add powercli modules to the powershell if running in powershell #Add-PSSnapin VMware.VimAutomation.Core param( $VMhost ="*" ) $ManagementHost0 = Read-Host "Address of the ManagementHost0" $ManagementHost1 = Read-Host "Address of the ManagementHost1" $ManagementHost2 = Read-Host "Address of the ManagementHost2" ...
PowerShellCorpus/Github/MrAmbiG_vmware/Archive/shootPG.ps1
shootPG.ps1
<# .SYNOPSIS This will remove the portgroup .DESCRIPTION This will first remove the vmkernel adapter on the target portgroup, then remove the portgroup. .NOTES File Name : shootPG.ps1 Author : gajendra d ambi Date : December 2015 Prerequisite : PowerShell V3, po...
PowerShellCorpus/Github/MrAmbiG_vmware/Archive/Syslogger(new).ps1
Syslogger(new).ps1
<# .SYNOPSIS This powercli script should set many of the commonly used syslog settings as per the industry stanards or suggested by VMware. .DESCRIPTION This script uses the newer cmdlts of powercli to call the advanced settings and set it. .NOTES File Name : Syslogger(new).ps1 Author ...
PowerShellCorpus/Github/MrAmbiG_vmware/Archive/NTP.ps1
NTP.ps1
<# .SYNOPSIS Add NTP servers to esxi hosts .DESCRIPTION This should help you add multiple ntp servers to the esxi hosts. if you want to add more than 2 then just re run the same script. .NOTES File Name : NTP.ps1 Author : gajendra d ambi Date : June 2015 Recomme...
PowerShellCorpus/Github/MrAmbiG_vmware/Archive/SSHtoggler.ps1
SSHtoggler.ps1
####SSH Toggler#### #MrAmbig #Enable or disable SSH on all hosts of a vcenter ################### #variables $VCuser = Read-Host "Type the vCenter Server's Username" $VCpass = Read-Host "Type the vCenter Server's password" $VCaddress = Read-Host "Type the vCenter Server's address" #connect to the vcenter se...
PowerShellCorpus/Github/MrAmbiG_vmware/Archive/Syslogger[old].ps1
Syslogger[old].ps1
<# .SYNOPSIS This powercli script should set many of the commonly used syslog settings as per the industry stanards or suggested by VMware. .DESCRIPTION This script uses the old method of calling the advanced setting and setting it. These commands are deprecated. Nonetheless it works. .NOTES File Name...
PowerShellCorpus/Github/MrAmbiG_vmware/Archive/shutdownCLUSTER.ps1
shutdownCLUSTER.ps1
#REQUIRES -powercli 5.x <# .SYNOPSIS Shutdown cluster .DESCRIPTION Just run this oneliner and replace the mycluster with the cluster of your choice. more one liners at http://ambitech.blogspot.in/2015/05/create-multiple-dvswitches-and.html . .NOTES File Name : shutdownCLUSTER.PS1 ...
PowerShellCorpus/Github/MrAmbiG_vmware/Archive/MOBdisabler1.1.ps1
MOBdisabler1.1.ps1
<# .SYNOPSIS Disable mob on esxi hosts. .DESCRIPTION It will create a shell script on the host and then delete that script from the host once the script is run. Add the line below to the kickstart file when you are doing an automated install of ESXi hosts. vim-cmd proxysvc/remove_service "/mob" ...
PowerShellCorpus/Github/MrAmbiG_vmware/Archive/SshShellOn.ps1
SshShellOn.ps1
<# .SYNOPSIS Enable SSH/Shell and suppress warning. .DESCRIPTION 1. Enable SSH Enable SSH 2. Enable SSH+SSH Policy ON Enable the SSH and turn on the SSH policy to keep the SSH persistently on across reboots. 3. Disable SSH+SSH Policy OFF Disable the SSH and turn off the SSH policy s...
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_create_vss.ps1
fun_create_vss.ps1
<# .SYNOPSIS create vSwitchs on all vmware esxi hosts. .DESCRIPTION This will create vswitchs on all of your hosts of a vcenter .NOTES File Name : fun_create_vss.ps1 Author : gajendra d ambi Date : 2015 Prerequisite : PowerShell v4+, powercli 6+ over win7 and up...
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_security_vss.ps1
fun_security_vss.ps1
<# .SYNOPSIS Rename portgroups. .DESCRIPTION This will rename the portgroups in a vcenter of a cluster or for all hosts. .NOTES File Name : fun_rename_pg.ps1 Author : gajendra d ambi Date : January 2016 recommended : PowerShell v4+, powercli 6+ over win7 and up...
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_rename_pg.ps1
fun_rename_pg.ps1
<# .SYNOPSIS Rename portgroups. .DESCRIPTION This will rename the portgroups in a vcenter of a cluster or for all hosts. .NOTES File Name : fun_rename_pg.ps1 Author : gajendra d ambi Date : January 2016 recommended : PowerShell v4+, powercli 6+ over win7 and up...
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_nicteaming_vss.ps1
fun_nicteaming_vss.ps1
<# .SYNOPSIS update nicteaming on vswitchs. .DESCRIPTION this will update the NIC assigned for a vswitch .NOTES File Name : fun_nicteaming_vss.ps1 Author : gajendra d ambi Date : January 2016 recommended : PowerShell v4+, powercli 6+ over win7 and upper. C...
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_create_dvs.ps1
fun_create_dvs.ps1
<# .SYNOPSIS create DVS vmware esxi hosts. .DESCRIPTION This will create DVS your vcenter .NOTES File Name : fun_create_dvs.ps1 Author : gajendra d ambi Date : January 2016 recommended : PowerShell v4+, powercli 6+ over win7 and upper. Copyright - Non...
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_Nic_vss.ps1
fun_Nic_vss.ps1
<# .SYNOPSIS update Nic on vswitchs. .DESCRIPTION this will update the Nics assigned for a vswitch .NOTES File Name : fun_Nic_vss.ps1 Author : gajendra d ambi Date : December 2015 recommended : PowerShell v4+, powercli 6+ over win7 and upper. Copyright ...
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_addhosts_dvs.ps1
fun_addhosts_dvs.ps1
<# .SYNOPSIS add hosts to distributed vistual switch. .DESCRIPTION This will create distributed portgroup for your DVS .NOTES File Name : fun_addhosts_dvs.ps1 Author : gajendra d ambi Date : January 2016 recommended : PowerShell v4+, powercli 6+ over win7 and u...