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

79 questions
0
votes
1 answer

Powercli create local user and assign permission At VC level

I need a powercli script to automate some task in VC , I have found below script but here I can assign AD group permission to folder level. but I want to assign permission at VC level. is there any way we can do…
karthick
  • 317
  • 1
  • 3
  • 11
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
  • 6
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