Showing posts with label PowerCLI. Show all posts
Showing posts with label PowerCLI. Show all posts

Sunday 15 October 2017

Enable software iscsi on esxi02

Get-VMHostStorage -VMHost esxi02.vclass.local | Set-VMHostStorage –SoftwareIscsiEnabled $True



Output:-

Create a Port Group for vMotion(TCP/IP Stack enabled for vMotion)

New-VMHostNetworkAdapter -VMHost esxi02.vclass.local -PortGroup vMotion -VirtualSwitch vSwitch2 -IP 172.20.12.52 -SubnetMask 255.255.255.0 -VMotionEnabled $true

Output:-


GUID in Windows

powershell -Command "[guid]::NewGuid().ToString()"



Output:-

Thursday 10 August 2017

Installing PowerCLI Version 10

Check the version of PowerShell in windows System,
In order to install powercli 6.5.2 ,  the version of PowerShell should be 5 or above.
To install PowerShell 5 for windows server 2012, click here.
Download it,  install and update the windows server.
Once done run this command to check the PowerShell version


  • $psversiontable




Once PowerShell version is updated, run these commands
  • Find-module -Name VMware.PowerCLI
  • Install-Module -Name VMware.PowerCLI -Scope CurrentUser


Once finished, you will be able to run powercli commands from the same window.