Questions tagged [powercli]

VMware PowerCLI is a command-line and scripting tool built on Windows PowerShell

VMware PowerCLI is a command-line and scripting tool built on Windows PowerShell, and provides more than 600 cmdlets for managing and automating vSphere, vCloud, vRealize Operations Manager, vSAN, NSX-T, VMware Cloud on AWS, and VMware Horizon environments.

Resource for Downloads and Documentation and Reference

83 questions
0
votes
1 answer

How to obtain VMWare ESXi logging from Vsphere?

How to obtain VMWare ESXi log and store it in our local machine? Can it be acheived using VMWare powerCLI? ( I hope in log file i can get what are all the guest machines were utilized and how long . Is it true?)
Samselvaprabu
  • 1,311
  • 5
  • 14
  • 27
0
votes
1 answer

How to maintain the list of VM in case free ESXi?

In our company we do not have licensed ESXi. I am having 10 ESXi server and using Vsphere to connect each and every machine. Whenever i am giving machine to users i store few information in excel like follows IP_Address |VMName |GivenTo| Os|…
Samselvaprabu
  • 1,311
  • 5
  • 14
  • 27
0
votes
0 answers

VMware Guest VM Join My Own Domain With Netdom Fails ""DNS name contains an invalid character"

Trying to join a VMware guest VM to my domain. I'm running the Powershell script from one of my other guest vm's in VMware vCenter. I've tried changing the $Domain variable to other string names like "MATLOCKHOME" "MATLOCKHOME.COM" but still…
0
votes
0 answers

vmware tag and description

i have created some tags with description in vcenter like TAGS DESCRIPTION AppOwner Brad pit APpOwnerEmail AngenilaJolie@somemovie.com Environment NIIT-UAT and attached to a some VMs. VM may have multi tags attached using…
uozzyy
  • 23
  • 3
0
votes
0 answers

PowerCLI, Invoke-VMScript cannot get the script's exit code

I have a PowerShell scripts that uses PowerCLI's "Invoke-VMScript" command to start scripts on a sequence of systems. If the script on the first server fails, the controller script should stop. However, Invoke-VMScript doesn't detect the script's…
Michael Cornn
  • 269
  • 3
  • 16
0
votes
1 answer

Powershell module import not persisting in docker container image

I installed powershell in the php debian docker image and now I am installing PowerCLI module in the docker image to access the vsphere info and display using laravel. The issue is with the PowerCLI installation. Powershell doesn't seem to persist…
Vamshi
  • 103
  • 7
0
votes
1 answer

How to Move Multiple VM's to Different datastore

I have tried and search multiple way to migrate VM's to different data store $existingds = Get-Content dummy path $newds = Get-Content dummypath Get-Datastore $existingds | Get-VM | Move-VM -DiskStorageFormat Thick -Datastore $newds –RunAsync But…
Mohit
  • 1
-1
votes
1 answer

Powercli Script to measure the count of Host and its Vm's in a each clusters

I am trying create a on-liner script which gives an outputs of Hosts and vm's counts in a vcenter cluster like as below. Cluster: VMHost VM's Cluster01 …
suboss87
  • 109
  • 1
  • 2
1 2 3 4 5
6