The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
0answers
15 views

New-VM cmdlet stalls when create a new VM (works fine in vCenter)

Not sure were the issue is here. I can interactively create a VM in vCenter with exactly the same settings and it creates the VM like instantly. I just tried to do this with New-VM and it stalled at ...
1
vote
1answer
55 views

How can I get the VMware view agent version of VMs with powercli?

How can I get the VMware View Agent version running on a VM with powercli or View Powercli?
0
votes
1answer
36 views

powercli math with vmware - datastore property division arithmetic

basically, I get all 0's returned in the percentage1 column. I need help with what I believe is syntax or incorrect use of Round. Get-Cluster "my_cluster" | Get-VMHost | Get-Datastore | Select ...
0
votes
0answers
21 views

Get total committed size of a VM across all datastores

Unfortunately I have only a single ESXi host for testing right now, but I will eventually be running this script on a vSphere setup with multiple hosts. I want to get a VMs total committed size ...
0
votes
0answers
21 views

How can I get just 5 min intervals from an ESXi host?

I'm connected to an esxi host with the powershell snapin (not a vcenter server). ESXi servers are supposed to aggregate realtime data (20 sec intervals) into 5 min intervals right? Can I get just ...
-1
votes
2answers
108 views

vCenter Thin Provisioned disk usage calculations

I'm managing a number of Thin-Provisioned VMs in vCenter 5.1.0. Each contains one virtual Harddisk. We run a pretty tight ship in terms of allocating storage, so the difference between 1 or 2 GBs is ...
1
vote
0answers
44 views

PowerCLI - Network nested ESXi

Is there a way to configure the management interface of a nested ESXi Guest over PowerCLI? I'm looking to automate the configuration of a nested ESXi VM for testing customer configurations / ...
0
votes
0answers
11 views

how to upgrade my powercli 5.5 release 1 to be powercli 5.5 release 2 with build number 2068190 [duplicate]

I have PowerCli 5.5 release 1 installed inside windows server 2008 r2. now I want to upgrade it to be 5.5 release2 build number 2068190. I found the upgrade at this page link 5.5 release 2 upgrade but ...
0
votes
0answers
31 views

unable to upgrade fom powercli 5.5 u1 to 5.5 u2 , as i am getting the following message "Installation cannot continue.. ,

I have Powercli version 5.5 release 1. and I want to upgrade it to 5.5 release 2 build 2068190. so I try installing Powercli 5.5 u2, and during the installation I faced this problem :- Although I ...
0
votes
1answer
145 views

How can I get VMHost's operating system and serivce pack info using Get-VMHost

I am trying to get the VMHost operating system info , but I can not find the required scripts. I tired this :- Get-VMHost which return a lot of info about the VMHost,, but the operating system ...
0
votes
0answers
32 views

Unable to get the DHCP server + NIC using “Get-VMHost <hostname> | Get-VMHostNetworkAdapter -VMKernel”

I run the following command inside my powercli 5.5 release1:- Get-VMHost <hostname> | Get-VMHostNetworkAdapter -VMKernel where I got these info :- VMotionEnabled ...
1
vote
1answer
62 views

unable to get the IP,Mac, and other network info using (Get-VMHost).NetworkInfo

I am using powerCLI verion 5.5, and I wrote the following script:- Get-VMHost |Export-Csv -Path c:\test.csv -NoTypeInformation –UseCulture I got info for the vmhost such as used memory, build, ...
1
vote
1answer
72 views

Get-VMHost does not show the server Networkinfo and number of processes

I run the following powercli 5.5 command , to get info about a host vm :- Get-VMHost |Export-Csv -Path c:\VM.csv -NoTypeInformation –UseCulture and I got these info :- State ConnectionState ...
0
votes
1answer
144 views

Unable to connect to server using its name “Connect-VIServer ”

I wrote the following PowerCLI command to connect to a server by its name :- Connect-VIServer -Server "t***.v****ces.intra" -User root -Password "*****" but I got the following error:- ...
0
votes
1answer
114 views

Connect-VIServer will always propt a dialog to enter username & password

I rung the following command inside powercli 5.5:- PowerCLI C:\> Connect-VIServer -Server 172.16.20.101 -User root -Password **** but I got a dialog to enter username and password although I am ...
0
votes
1answer
78 views

Using PowerCLI Versus using asp.net WMI to scan and retrive informaion about ESX hosts

I want to scan and view information about ESX hosts which have "ESXi 5.0 Update 1" as their OS inside my asp.net web application. mainly to be able to retrieve the ESX specification and all the vms ...
1
vote
1answer
214 views

VMware Cloning with POWERCLI with nested folder

I'm trying to clone some Virtual Machines using POWERCLI, but when I set the target location I'll have the error "Could not find Folder with name" ... My folder estructure is like: DC1\destfolder ...
0
votes
0answers
62 views

VMware vSphere PowerCLI behind socks proxy

I am trying to manage remote ESXi hosts using VMware vSphere PowerCLI cmdlets using ssh socks tunnel. System proxy is set to socks tunnel and connectivity verified with browser, PowerCLIConfiguration ...
4
votes
1answer
147 views

Can you list a Datastore Cluster's sDRS Schedule via PowerCLI?

We have a lot of datastore clusters, most if not all are supposed to have sDRS schedules applied to stop them moving VMs at busy periods. Obviously we could trawl through them manually to check if ...
0
votes
1answer
751 views

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 ...
1
vote
0answers
26 views

Vm counts by folders

I have created a script which collected the VM counts for the selective folders in each Vcenter, This scripts seems working fine but it's not collecting output to the CSV. $output = @() Get-Content ...
0
votes
1answer
212 views

Trouble with embedding html email with PowerCLI/Powershell for gmail

I am new to Powershell, I am a junior admin for a VMware environment. I am trying to automate a weekly report for snapshots in PowerCli. I am making the script in Powershell. I have made a simple ...
1
vote
0answers
147 views

PowerCLI automation set-cddrive error

When attempting to change ISOs on a powered on guest instance, set-cddrive is returning an error but completing the command. A couple different commands produce the same result: $theVM | Get-CDDrive ...
0
votes
2answers
567 views

PowerCLI Move-VM Returns failure but vm still moves

I have a script that is moving VM's from one datastore to another. I have other logic to protect the Storage backend and fabric from over subscription and to wait to submit new requests at specific ...
1
vote
2answers
1k views

How do I open the VMware Remote Console (application) from the PowerCLI?

A recent update to ESXi in our environment added a feature, "Open with VMRC". This works outside the browser, and as the method of accessing the console that functions inside the browser hasn't ...
2
votes
1answer
318 views

ESXi 5.5 hosts have multiple HostDateTimeSystem entries

I've been trying to do an audit of time skews on some of my hosts recently. Using PowerCLI I found a few scripts that reference the ConfigManager.DateTimeSystem to get the ESXi Host datetime. ...
9
votes
2answers
3k views

ESXcli command timeout at 30 minutes

I am working on a powercli script to loop through each datastore in our environment and reclaim space on the thin provisioned LUNs. All LUNs in the environment are Dell Equal Logic. vCenter ...
0
votes
1answer
286 views

Reload VIAccounts list with PowerCli to select a newly created group

I'm using a script that creates groups in Active Directory, and links them to my vCenter server using New-VIPermission. The trick is that it doesn't find the groups created unless I restart the script ...
0
votes
1answer
855 views

finding guestid in offline documentation?

I have a little question thats been bugging me lately. I am using PowerCLI to create a new VM and I want to use the -guestId parameter to specify the Guest OS. Is there any built in documentation ...
2
votes
1answer
196 views

vmware thin disk usage powercli

I want to ask a question about thin provisioning. get-vm commandlet can easly give us real space used by a vm totally. Assume that you have a virtual machine which has more than one thin disk. If ...
0
votes
2answers
158 views

Snapshot Reporting via Email

I've got the current script that is supposed to log onto vsphere, get all snapshots that are over a week old, and email the results. Connect-ViServer server $weekOldSnapshots = ...
5
votes
1answer
576 views

Checking partition alignment with PowerCLI

I'm trying to verify that the file system partitions within each of the servers I'm working on are aligned correctly. I've got the following script that when I've tried running will either claim that ...
1
vote
2answers
545 views

Gathering buslogic SCSI hardware and virtual machine operating system

I'm trying to use Powershell to get SCSI hardware from several virtual servers and get the operating system of each specific server. I've managed to get the specific SCSI hardware that I want to find ...
0
votes
1answer
43 views

Method of obtaining SCSI hardware on all virtual servers

I'm looking for a method to check what the SCSI hardware of a VM is and identify any servers that have virtualbuslogic. I'm trying via PowerCLI to make this happen although I'm not sure how to specify ...
1
vote
1answer
151 views

How do I create an IP Pool using PowerCLI?

Datacenter objects have a tab "IP Pools" to create IP pools for vApps (as I understand it). How can IP pools be created or modified using PowerCLI?
1
vote
1answer
3k views

Delete all snapshots over 30 days old

I'm currently using VMware 5.1 and looking for a method to keep snapshots that users create from becoming too old. Is there any tool inside of VMware that allows you to manage snapshots (or possibly a ...
2
votes
3answers
509 views

Is it possible to add root ssh keys to /etc/ssh/keys-root/authorized_keys on ESX hosts without having to log into every box?

I have close to 70 ESX hosts that need to have the root SSH keys added to them. Is there a way to do this through vsphere or powercli, or will I have to manually SSH into each box and add the line to ...
1
vote
3answers
625 views

'exit status' of a powershell pipeline

How do I check for the success/failure of a pipeline from within the same executing script? Get-VM -Name Machine | Get-Snapshot | Where {$_.Created -lt (Get-Date).AddDays(-1)} | Remove-Snapshot ...
1
vote
2answers
3k views

How can I get triggered alarms using PowerCLI?

In vSphere Client on a VM host in the Alarms tab there is a view of Triggered Alarms. How can I get those alarms using PowerCLI?
1
vote
2answers
888 views

PowerCLI: How can I find an ESXi host's system memory?

A view of a VM host gives me the field .Config.ConsoleReservation, but ESXi doesn't have the console any more. The vSphere GUI shows total memory and system memory for ESXi hosts. How can I get an ...
1
vote
1answer
1k views

Resetting the VMware PowerCLI global:DefaultVIServer and global:DefaultVIServers system variables?

Can anyone here please assist me in resetting the global:DefaultVIServer and global:DefaultVIServers system variables into $null ? because I cannot do anything with my PowerShell anymore even after ...
2
votes
1answer
3k views

VMWare 5.1 Datastore in use when trying to unmount?

When trying to unmount a datastore from one of my 4 ESXi hosts, I receive a message that it's in use. The full error stack I see is: Call "HostDatastoreSystem.RemoveDatastore" for object ...
2
votes
1answer
8k views

Query ESXi memory slots/installed memory modules from PowerCLI 4.1

I have a VMware infrastructure with some ESXi 4.1 hosts and a vCenter Server 5.0 installed. I need to extend our hardware inventory with the following info: how many memory slots are available in ...
0
votes
0answers
353 views

Querying boot order with powershell in vsphere

We have any environment with thousands of virtual desktop hosted on a vshpere hypervisor. I'm looking for a way to check the boot order in the bios of each vm to ensure they all are set up properly. ...
1
vote
0answers
187 views

PowerCLI: cancel all taks for current user

I would like to create a PowerCLI script that cancels all tasks initiated by the current user. I haven't been able to use Get-Task or a filter to get only my tasks, as I haven't found that property on ...
4
votes
2answers
747 views

Setting a VM boot CD via PowerCLI

I have a sneaking suspicion that this may be a bug, but I'm definitely willing to entertain the possibility that I'm doing things wrong. I have a VMware virtual machine in $vm, and I'm trying to ...
6
votes
3answers
42k views

VMWare ESXi: how to add network drivers to installation?

Background / Problem I have two new servers (Dell R720 & Dell R520) that I plan to install ESXi onto. During the VMWare Hypervisor installation, I'm told that no network adapters exist. Upon ...
1
vote
1answer
92 views

Scripting changes to the vNIC in vSphere for a cloned VM

After deploying a Windows VM clone from a template, how can a script be written to change the network the vNIC is on ("Network label" in the VM Settings window) and enable the NIC? I'm working with ...
4
votes
1answer
748 views

Modifying the number of VCPUs in a VMware VM

In ESXi, what is the automation/script (I expect it would be using PowerCLI somehow) approach to modify the number of VCPUs in a VM? In context, when using our kickstarts, RHEL won't install the SMP ...
2
votes
1answer
11k views

Get Used rather than Provisioned space in PowerCLI

I'm trying to run a capacity report, and when I run the Get-HardDisk cmdlet in PowerCLI, the value it returns for CapacityKB is the Provisioned space. For example, let's say I've thin provisioned a ...