Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Blog posts : "Powercli"

VMware Powercli : Gather distributed virtual switch information to JSON file to migrate standard switch

December 4, 2017 11:48AM

I have already written complete series on how to migrate distributed virtual switch to Standard virtual switch which helps to move Esxi host from one vCenter to another vCenter server. As you should not remove Esxi directly with distributed switch from vCenter until you move it to standard virtual s…

Read more

Copy or clone distributed virtual switch portgroups to standard switch portgroups - Powercli

November 13, 2017 12:11PM

Migrating ESXi server from one vCenter server to another vCenter server is very easy task if complete networking is on standard virtual switches. When migrating ESXi server with distributed virtual switches to another VC is also easy but requires extra steps. First it is recommended to move back fro…

Read more

vSphere PowerCLI - Configure syslog on VMware ESXi hosts and Enable security profile firewall

November 1, 2017 01:55PM

In my earlier article I wrote about Configure syslog on VMware ESXi hosts: VMware best practices using VMWare vSphere web client GUI. Configuring syslog server on multiple esxi host servers manually by clicks is very boring task, As automation is everywhere, use it to doing with better way in VMWar…

Read more

POWERCLI AND VSPHERE WEB CLIENT: JOIN ESXI INTO ACTIVE DIRECTORY DOMAIN CONTROLLER

July 26, 2017 09:22AM

This is another best security guideline to always join Esxi server into domin, most preferable is Active Directory domain controller, One of the advantage is I can use domain-wide authentication with Domain joined ESXi, Means I don't have to use or share root or any local username to login, Creating…

Read more

VMWARE SECURITY BEST PRACTICES: POWERCLI ENABLE OR DISABLE ESXI SSH

July 25, 2017 09:14AM

Logging into SSH required in some of the common troubleshooting scenario or fetching information: ie  checking logs, telnet, ping, esxtop etc, Although subject title of this blog is mentioned Powercli, but I am showing all ways to enable SSH service on esxi including GUI as well, By default SSH serv…

Read more

POWERCLI: VIRTUAL MACHINE STORAGE MIGRATE/SVMOTION AND DATASTORE PORT BINDING MULTIPATHING

July 20, 2017 08:45AM

POWERCLI VMWARE: CONFIGURE SOFTWARE ISCSI STORAGE ADAPTER AND ADD VMFS DATASTORE

July 13, 2017 08:45PM

This blog article is similar to my previous notes VMWARE ESXI INSTALL AND CONFIGURE SOFTWARE ISCSI STORAGE ADAPTER FOR VMFS VERSION 6 DATASTORE. Here I am using VMware Powercli instead of vSphere web client to configure iScsi storage adpater and add new datastore. As this is complete powercli artic…

Read more

FIND FREE OR UNASSIGNED STORAGE LUN DISKS ON VMWARE ESXI SERVER

July 13, 2017 07:35PM

This is one of my small script. And I use it to find free or unassigned unforrmatted LUNs/Disks on Esxi server. When Lun or disk from storage (most probably remote) assigned and presented to Esxi server, this LUN doesn't have any partition, and unformatted as a raw disk, This is visible when you try…

Read more

POWERCLI: VMWARE ESXI CONFIGURE (VSWITCH) VMKERNEL NETWORK PORT FOR ISCSI STORAGE

July 10, 2017 06:42PM

In earlier chapter I created new VMKernel adapter using vSphere Web client GUI, Here I am going to perform same steps but using vmware powercli, If you are new to PowerCLI, need to set it up, I am suggesting check my another blog VMWARE VSPHERE POWERCLI INSTALLATION AND CONFIGURATION STEP BY STEP. …

Read more

VMWARE VSPHERE POWERCLI INSTALLATION AND CONFIGURATION STEP BY STEP

July 9, 2017 07:29PM

VMWare vSphere suite (vCenter, Esxi and other products) can be managed using powercli, It is software module installed as same as about to deprecate old vSphere c# client. Prerequisite is you must have Powershell on the client desktop or server from you are managing vSphere, by default Powershell av…

Read more

POWERCLI - CREATE DATACENTER AND ADD ESXI HOST IN VCENTER

August 4, 2016 09:26AM

Few days back I wrote CREATE VIRTUAL DATACENTER AND ADD ESXI HOST ON VCENTER SERVER using vSphere web client. That was completely graphical user interface GUI way to perform the task. Now I will be performing same task using VMware vSphere Powercli tool. I have downloaded it from http://www.vmware.…

Read more

POWERCLI INITIALIZE-POWERCLIENVIRONMENT.PS1 CANNOT BE LOADED BECAUSE RUNNING SCRIPTS IS DISABLED

July 31, 2016 07:07PM

VMWARE VSPHERE POWERCLI INSTALLATION AND CONFIGURATION STEP BY STEP

After installing VMware vSphere PowerCLI installer, when running it for first time you may see below error on the PowerCLI console.

. : File C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-Po…

Read more

POWERCLI : ESXI SERVER SNMP CONFIGURATION USING ESXCLI COMMANDS

June 27, 2016 08:02PM

VMWARE VSPHERE POWERCLI INSTALLATION AND CONFIGURATION STEP BY STEP

I was configuring SNMP on multiple ESXi servers and I wanted to use only VMWare Powercli for this instead of Esxi SSH or vCLI commands, (I wanted avoid enabling SSH service and port on Esxi and didn't want to install vCLI tools,…

Read more

13 Blog Posts