The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
46 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 ...
1
vote
1answer
171 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 ...
1
vote
1answer
164 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
81 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
27 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 ...
2
votes
0answers
176 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 ...
3
votes
3answers
9k 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
56 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 ...
3
votes
1answer
247 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
1k 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 ...
4
votes
1answer
7k views

How do I shutdown the Host over ssh on ESXi 5 so it shuts down the guests properly?

I have ssh login to an ESXi 5 host. All the guests have vmware tools running, so they can be shut down by the host properly. I would like an equivalent for this menu option in vSphere client: It ...
0
votes
1answer
519 views

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 . ...
0
votes
1answer
150 views

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 ...
2
votes
4answers
383 views

How to prevent taking snapshots after threshold in VMware ESXi?

We have given our users privilege to take snapshots. But now it is uncontrollable and people started taking meaningless snapshots and never deleting it. Due to this we are facing performance issue, ...
1
vote
1answer
146 views

ESX + Sysprep.inf + Template= unhappy computername

I am trying to create a template in ESX that I can automate with PowerCLI. Everything works great so far, but because I have some specific settings, I had to create my own sysprep.inf. Now, the ...
1
vote
1answer
731 views

PowerCLI - add shared hard disk to vm, using existing scsi controller

I would like to add a shared virtual disk to a second VM which is already attached to a first VM. They will have shared access to the disk, via SCSI controllers set to virtual bus sharing. This works ...
3
votes
4answers
628 views

PowerCLI: Run commands in virtual-machine

We have several view-desktops and I need a script to be performed once on all desktops. Sadly, WMI is disabled. These desktop are all running Windows XP SP3 I thought I read about the possibility to ...
3
votes
2answers
371 views

Encrypt powershell Credentials (creds) files

I have started to play around with PowerCLI and therefore created a credentials file to use when I connect to vCenter. The purpose for this will be to run scheduled tasks, such as running the vCheck ...