Subscribe: Comments for
Preview: Comments for

Comments for

Scripting and more.......

Last Build Date: Fri, 10 Nov 2017 02:52:52 +0000


Comment on Cannot Remove a vSphere host from vCenter by John Gooch

Fri, 10 Nov 2017 02:52:52 +0000

What if you're on a Mac and do not have access to power-cli? is there another way to do this?

Comment on Update Linux VMs with PowerCLI thanks to Invoke-VMScript by Richard Hughes

Wed, 20 Sep 2017 20:48:06 +0000

I'd change these lines, you may not want to force an upgrade of everything installed on the VM. $update = "yum clean all && yum update open-vm-tools -y" $update = "apt-get update && apt-get upgrade open-vm-tools -y"

Comment on Powershell: Delete a Folder of a Particular Age by Jeroen Budding

Tue, 29 Aug 2017 07:54:55 +0000

Following script needs to be changed. I changed the Remove-Item so it goes to the correct directory. $Now = Get-Date $Days = "30" $TargetFolder = "D:\Report" $LastWrite = $Now.AddDays(-$Days) $Folders = get-childitem -path $TargetFolder | Where {$_.psIsContainer -eq $true} | Where {$_.LastWriteTime -le "$LastWrite"} foreach ($Folder in $Folders) { write-host "Deleting $Folder" -foregroundcolor "Red" Remove-Item $TargetFolder\$Folder -recurse -Confirm:$false }

Comment on PowerCLI: Add multiple values to a VMX file by Disabling Time Synchronization using powercli – Blog about the Infrastructure

Sat, 12 Aug 2017 10:45:33 +0000

[…] […]

Comment on PowerCLI: Check CPU/Memory Hot Add by Abdul Mohsin

Wed, 02 Aug 2017 15:06:35 +0000

Very nice script, appreciate your efforts in creating such a great script.

Comment on PowerCLI: Add Notes To Multiple VM’s by anurag

Wed, 07 Jun 2017 12:58:06 +0000

how about if i don't want to overwrite the notes, i want to add one word in the previous notes. can you help here?

Comment on How to copy ISO files between datastores via PowerCLI by PowerCLI : copy .ISO to each datacenter in vCenter | dviskoe

Fri, 03 Mar 2017 14:29:58 +0000

[…] From: # Copy-DatastoreItem vmstore:AlkmaarDataCentertemplate-01iso* […]

Comment on Powershell: Veeam Cloud Connect total virtual machines report by Newsletter: January 21, 2017 | Notes from MWhite

Sat, 21 Jan 2017 22:42:09 +0000

[…] Veeam Cloud Connect total virtual machines report Some useful PowerShell to produce a report on how many virtual machines are in your Cloud Connect environment.  Also a good example of what […]

Comment on PowerCLI: Script to Schedule Memory and or vCPU up/downgrade by Silvio Daliana

Sat, 14 Jan 2017 08:40:42 +0000

hi, a question. this script change total vCPU but for edito number of socket and core? for a VM with more socket and core the script not work. need to specify numbero of core and total of vCPU.. Here is a quick method to use to make this happen: (VM has two sockets, three cores for six total vCPUs.) $VMname= get-vm “VM1″ $TotalvCPU=6 $Cores=3 $spec=New-Object –Type VMware.Vim.VirtualMAchineConfigSpec –Property @{“NumCoresPerSocket” = $cores} ($VMname).ExtensionData.ReconfigVM_Task($spec) $VMname | set-vm -numcpu $TotalvCPU