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

Perform a lip login

Hi I am tying to run the following. It is a command to run at the esx console to perform a lip login after adding new storeage. Any help would be great.   esxcli storage san fc reset -A vmhba2 I tried...

View Article


Split a string select everything after delimiter

Hi, I am trying to query the esx logs for warnings and remove duplicates of the same error to limit what s returned. i am stating with removeing everything after the date so i can do a -unique hoping...

View Article


Deploying a VM from a Content Library through the API with Powershell Help

    I am trying to deploy a VM from a Content Library using the com.vmware.vcenter.ovf.library_item  Deploy method.  I believe I must be missing something or am not doing something correctly because I...

View Article

Get-vmhost shows duplicates

when i run this command i get all the servers in the datacentre listed twice any one have any ideas I had a little route around in the ventre database and i vpx.host table has all of them listed once...

View Article

Export VM info

Long time lurker and my first post in VMware forums! Woo Hoo In preparation for a storage migration project, I setup annotations for all VMs in the datacenter to indicate what Environment, Metallic,...

View Article


Image may be NSFW.
Clik here to view.

get-vm with multiple -ne

I got multiple vms I want to ignore when selecting get-vm vm1vm2vm3vm4 get-vm | ? {$_.name -ne (get-vm vm1,vm2, vm3,vm4)} of do I need to do it this wway?  get-vm | ? {($_.name -ne vm1) -and ($_.name...

View Article

Image may be NSFW.
Clik here to view.

Retrieve ESXi events through Get-View

Hello, due to the "Error in deserializing body of reply message for operation 'RetrieveProperties'" error when running Get-VIEvent + export-csv I'm exploring a way to go through Get-View. I'm not able...

View Article

Add multiple baseline to ESXi host using powercli command

Friends There are 2 predefined baseline in VUM 'Critical Host Patches (Predefined)' and 'Non-Critical Host Patches (Predefined)'. Please help me to modify below script so that it will add both baseline...

View Article


Image may be NSFW.
Clik here to view.

Automating patching of Windows Templates - strange error on 2012 R2..

So, last friday I was about to patch templates in different systems, and this time it needed some special care for Spectre/Meltdown patches and workarounds. Figured I may as well finally start...

View Article


Ping host from ip list with powershell

Hello, I would like to ping some or all host in vcenter in some specific time, Is possible to do by script?

View Article

PowerCLI 6.5.4 Malware detection

I tried installing PowerShell 6.5.4. I received an error with the attached content.Is there someone who is receiving the same event?

View Article

Windows Defender reports false positive for PowerShell Modules

Over the weekend, Microsoft released a Windows Defender signature file that falsely reports many PowerShell modules, including PowerCLI as containing a virus.This is a FALSE POSITIVE widely affecting...

View Article

PowerCLI - Clear Alarm

Hi all, We recently found our hosts were susceptible to this issue.  After applying the vCenter update to resolve this going forward, we went through all the affected VMs with VMware's PowerCLI script....

View Article


Transmitted Packet drops for a VM

Hi Team , I wanted to know if there is a way to get transmitted packet drops for a VM , I know the stat is available through powercli for host however checking if its available for a VM as well. I can...

View Article

Image may be NSFW.
Clik here to view.

need to create an Alarm in multiple VM using pcli

DearsI need to create an Alarm in multiple VM. using PcliMany thanks

View Article


Connect-HVServer Could not find user

Even after using recent version of view and powercli we are still seeing below error while trying to connect to connection broker  Connect-HVServer : ExceptionType :...

View Article

Get VMs with Tag Like and export csv just vm name

Hi, I would like to export in csc the list of my vm who have a specific tag.i can do that but the powercli command extract the vm with all properties,so i would like just the name of my vms.i 'm...

View Article


Ping host and get result for X hours

Hello, This is relate to my previous PostPing host from ip list with powershell I need to use this script (if possible) to ping some hosts for X hours  for example each 5 minutes, and get result in a...

View Article

Script to verify activation of VM Windows License

I have deployed over 50 VM's via powercli Script and noticed the customization on some of the VM's didn't activate windows license. Is it possible to run a powercli script on these 50 VM's to see which...

View Article

Image may be NSFW.
Clik here to view.

Using plink.exe in Powershell script returns "Unable to create scratch...

Hello,I wrote this powercli script in order to update the HP Smart array P840 firmware and driver of my HP DL380 G9s. I am currently running ESXi 65U1 and vSAN 661.I staged the files with another...

View Article
Browsing all 16717 articles
Browse latest View live