Hello can i the poweshell script to get the status of the vm...We just wanted agent unreachable machine count with vm name
@stereoactivo6 ай бұрын
Hi! thanks for this, it was super useful. I was following this to achieve the same result, however I'm having some issues with it, maybe you can give me a hand. Instead of Start-Sleep -Seconds $sleep, I created a class: class MyBackgroundTask { [void] run() { $timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss" Write-Host "$Timestamp Starting background task..." Start-Sleep -Seconds 20 $timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss" Write-Host "$Timestamp Background task completed." } } However, when calling run() on the object, all the parallelism is gone. Do you have any idea how to fix it?
@stucker7860 Жыл бұрын
Always great content from this Guy! :)
@johnmcgiv1 Жыл бұрын
Please increase FONT SIZE...
@asfasty9724 Жыл бұрын
Thank you so much - this one I need to print, bookmark, copy into a file and I don't know what else, saved me tons of troubleshooting. 1-2-3 trust was back crazy - thanks again
@linkshri Жыл бұрын
Thanks for this Video. Can we schedule and take snapshot using powerCLI (In console we have an option to schedule snapshot on each vm level) Thank you.
@shadaxgaming2 жыл бұрын
"Anything you can do in console" : Just want to amend and note that the vsphere web console allows for viewing the guest machine's console, as well as performance metrics (i.e. graphs) which cannot be displayed in text/cli
@GuyRLeech2 жыл бұрын
You misunderstand - I can start a console, etc from PowerCLI (or REST). Take a look at this script which does this, as well as producing screen snapshots, (and shows performance metrics although not graphically as I am not trying to replicate the web console in its entirety, just implement the key bits for testers, QA, devs, etc) github.com/guyrleech/VMware/blob/master/VMware%20GUI.ps1
@nbr991002 жыл бұрын
Ok..Ok
@yzgulec2 жыл бұрын
Hey Guy. Thanks for sharing your precious knowledge with us. I really appreciate. I will check vcenter gui script asap. Cheers!
@kkhalil5972 жыл бұрын
This might be a long shot but how about a ps script to increase cpu/ram on vms with hot add disabled?
@GuyRLeech2 жыл бұрын
If you take a look at my VMware GUI script, it has the ability to change the RAM allocated to a VM, which needs to be done when the VM is stopped if dynamic add isn't enabled. Also code in there to shutdown & start a VM (for snapshot purposes) github.com/guyrleech/VMware/blob/master/VMware%20GUI.ps1
@amrikhurniawan78942 жыл бұрын
Halo sir, can i get the code file?
@sandeshgaikwad41862 жыл бұрын
Hey, Nice video . Can you plz help me out, Do you have any sample script to create and delete the snapshot. Ex I have 15 snapshot but I want to create new one and delete the oldest one 15 number snapshot only so I can mentain retention period.
@GuyRLeech2 жыл бұрын
Thank you. Take a look at this script which contains code for creating and deleting snapshots but make sure you delete the right ones! github.com/guyrleech/VMware/blob/master/VMware%20GUI.ps1
@ahmedsaad-lk2og2 жыл бұрын
thanks
@decnine2 жыл бұрын
Thanks for sharing. Text is too small. Would be great if you could zoom in a little next time.
@greglions96903 жыл бұрын
This is fantastic Guy!! Super keen to try it asap as we're in the late stages of a migration and fighting some performance issues..
@pramodnikam10544 жыл бұрын
this video best but my conscience is i have vcenter on my premises but i work manually how to multiple clones with vsphere virtual machine with assign IP address and host-name
@GuyRLeech4 жыл бұрын
You want fixed IP addresses rather than DHCP? I have a cloning script for non-vCenter although don't use linked clones with 7.0 - github.com/guyrleech/VMware/blob/master/ESXi%20cloner.ps1
@pramodnikam10544 жыл бұрын
grl-vcenter04.guyrleech.local/folder this site cant be reach