Quantcast
Channel: VMware Communities : All Content - VMware PowerCLI
Browsing all 16717 articles
Browse latest View live

The specified Href 'https://URL/api/Internal errror: ComposeOperationHref() :...

We're having issues setting up a PowerCLI script that automates creation of a new-org within vCloud Director 9.The error PowerCLI is prompting: New-Org         The specified Href...

View Article


VM report daily

Hello, I would like something like this: $VMS = get-vm $report = @() foreach ($vm in $VMS) { $row = "" | select  "VM","DNS Name",PowerState,CPU,Memory,DiskProvisioned,DiskUsed,Cluster,Environment...

View Article


How to pull all the properties for Vmware tools advanced settings through...

Only on some of the windows Vm's in our production environment,  We noticed that restarting the vmware tools service within the guestOs updates the vmware tools and then reboots the machine...

View Article

Gathering virtual machine IOPS statistics by datastore

View Article

move-vm - The specified delta disk format 'redoLogFormat' is not supported

Hi,we are trying to migrate from VMFS5 datastore to VMFS6. As usually, I have tried simple script doing Move-VM. But it fails on vm with snapshots with error:  Move-VM    The operation for the entity...

View Article


QLogic firmware version via PowerCLI

Hello, I checked all posts in this community and even outside of it. It seems that there is no way via PowerCLI to get the HBA firmware version unless going via plink and run something like this for...

View Article

Hardening Script Problems

Hello, I am trying to write a script to harden a vSphere 6.5 host so I can build a host profile from one host to apply to the others in a newly built environment. I am having trouble with two lines of...

View Article

PowerCLI script to disable vm affinity rules

I have a script to list VM affinity rules for all clusters in every datastore: ForEach...

View Article


Using customization specifications with Content Library ovf

Problem statement:We are in the process of converting our provisioning code from utilizing conventional Templates stored in specific datastores to leveraging a Content Library per datacenter to allow...

View Article


Image may be NSFW.
Clik here to view.

sVmotion script

Hi All,I am planning to migrate all VMs from one old datastore to the new datastore. I need  a scripts where I can specify the list of VMs in scope of migration, destination datastore in csv or txt...

View Article

PowerCLI 10 - Get-tag and get-tagassignment are not working as expected.

We use tags many reports and to allow users to manage information about VM's. We run a script that pulls this information into a spreadsheet.  Running...

View Article

Warning Message while running the script

Hi, When I am executing the below script, I am getting warning Invoke-VMScript -vm $serv -ScriptText "echo rescan > c:\diskpart.txt && echo select vol $VolumeLetter >> c:\diskpart.txt...

View Article

Removed Driver, Rebooted host and it fails to install the same driver with...

I have a smartpqi driver which is installed in the esxi host.  After performing "esxcli software vib remove -n smartpqi.vib", driver gets removed successfully, but after reboot I am not able to install...

View Article


Can powercli pull "Original Install Date:" from the Windows guest?

I am updating the annotations of VM's, one that our management has asked for is the original build date. Can powercli pull the "Original Install Date:" as is listed in systeminfo?

View Article

Invoke-VMScript to send "service-control --stop --all"

HI Guys, I have issue while sending "service-control --stop --all" or "service-control --start --all " through invoke-vmscript.    File "/usr/bin/service-control", line 9, in <module>|...

View Article


PowerCLI and SRIOV NICs?

Does anyone know if its possible to attach a SRIOV NIC to a VM via PowerCLI?

View Article

Image may be NSFW.
Clik here to view.

Outputting VAAI Settings in Email (scheduled task)

Hi, I am attempting to create a script that runs as a batch job as a scheduled task.  The task runs successfully, but having issues outputting the script results of VAAI settings (all ESXi hosts) into...

View Article


Add passthrough RDM external eSATA drive to a ESXi VM using PowerCLI?

Hello Im trying to script using PowerCLI and part of that script is adding a external eSATA drive as a passthrough RDM. I can create it using vmkfstools -z but what I am currently missing is create the...

View Article

New-Harddisk on a New-ScsiController when PoweredOn. Moment-22.

On a running VM I would like to add some new harddisks. Those disks should be spread out on new virtual ScsiControllers. This is done very easily in GUI. But PowerCLI seeams unable to do this on a...

View Article

Image may be NSFW.
Clik here to view.

New-TagAssignment Value cannot be null.

trying to run the following script and getting errorsScript $VMList = Import-CSV -Path C:\vmw_scripts\test.csv$vcenter = "myvcenter" connect-viserver $vcenterforeach ($vm in $VMList){Get-VM $vm.vm |...

View Article
Browsing all 16717 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>