Tags
2008R2 Access List ACL activate by phone active directory ActiveSync ACU Address list alarms Anonymous relay array backup cacls catch cd-key cisco Citrix CUSD DAG dismount iso dns Exchange Fortigate Fortinet function get-eventlog get-snapshot get-vm HPE 3PAR Linux Lync microsoft Permissions powercli Powershell Powershell agent PSA PuTTY registry script UCS Director vmware Windows 7 Windows Server Zenoss-
Recent Posts
Recent Comments
- Mark Cloney on PowerCLI: Getting vmhost uptime
- Pierre Wong on Powershell: Listing activated clients on KMS server
- Ian on “The given Key was not present in the dictionary” error when running Group Policy Modeling
- Ian on “The given Key was not present in the dictionary” error when running Group Policy Modeling
- Wasim on Resetting the Discretionary Access Control List (DACL) in a Windows Service security descriptor
Categories
- Ad
Category Archives: PowerCLI
PowerCLI: Mount NFS stores on multiple hosts
Ever had a bunch of vmware hosts that you want to add a NFS datastore on? It can be quite time consuming to say the least. In our environment we have a couple of NFS stores that should be available … Continue reading
Posted in PowerCLI, Powershell, VMware
Tagged mount nfs, Mount-NFSstores, powercli, Powershell
PowerCli: Finding amount of GB used by VMs in a folder/vApp/datacenter
Sometimes it can be useful to know how much space the VMs in a specific folder (or vApp/datacenter) is occupying. For example if you are a hosting provider of some sort and need to know how much space a customer … Continue reading
Posted in PowerCLI, Powershell, VMware
Tagged disk space, get-harddisk, powercli
PowerCLI: Consolidate all VMs that need consolidation
Robert van den Nieuwendijk has a nice post on how to use PowerCLI to find VMs that need consolidation and then how to start consolidation. You can that post here: http://rvdnieuwendijk.com/2012/09/26/use-powercli-to-consolidate-snapshots-in-vsphere-5/ But, as always, I prefer to make a function of … Continue reading
Posted in PowerCLI, Powershell, VMware
Tagged disk consolidation, powercli, Start-Consolidation, vmware, vsphere
PowerCLI: Locate a MAC-address in vCenter
To find out to which vm a MAC address belongs, you can use a simple one-liner: Get-vm | Select Name, @{N=“Network“;E={$_ | Get-networkAdapter | ? {$_.macaddress -eq“00:50:56:A4:22:F4“}}} |Where {$_.Network-ne “”} (Courtesy of this page: http://www.virtu-al.net/2009/07/07/powercli-more-one-liner-power/ ) Thats really great, and you … Continue reading
Posted in PowerCLI, Powershell, VMware
Tagged function, get-macaddress, get-vm, powercli, Powershell, vmware
PowerCLI: List all vm’s with ISO mounted and dismount them
Easy-peasy and a pretty short post… To get all vm’s with iso mounted: Get-VM | Get-CDDrive | select @{N=”VM”;E=”Parent”},IsoPath | where {$_.IsoPath -ne $null} Then, to dismount those: Get-VM | Get-CDDrive | where {$_.IsoPath -ne $null} | Set-CDDrive -NoMedia -Confirm:$False
Posted in PowerCLI, Powershell, VMware
Tagged dismount iso, get-vm, powercli, Powershell, set-cddrive, vmware
PowerCLI: Migrate all vm’s on a datastore
PowerCLI is just awsome This simple one-liner migrates all vm’s off one datastore to a new one: Get-VM -Datastore <datastore1> | Move-VM -Datastore <datastore2> You can also move vm’s off one datastore and place them in any datastore within a … Continue reading
PowerCLI: List all snapshots
It’s been a while since last update, again, so I figured I should at least provide something.. I recently started in a new job, and one of the first things I looked into was the amount of snapshots in our … Continue reading
Posted in PowerCLI, Powershell, VMware
Tagged date created, get-snapshot, get-vm, powercli, Powershell, size, snapshot, vmware