Virtually everything is poshable
Disclaimer
The opinions expressed on this site are my own and do not reflect the views of my employer, VMware, or any other party unless otherwise stated.RECOMMENDED
vSphere 4.0 Quick Start Guide
Shortcuts down the path of Virtualization
BUY IT NOW:
US $15.99
Europe: £12.53
PDF: £6.26Virtu-Al Lab Config
CPU: 17,592 MHz
RAM: 14,334 MB
Storage: 2,451 GB
ESX Hosts: 2
Resource Pools: 4
Virtual Machines: 16
VMotions: 36
Power States:
(3)
(13)
(0)
last update
0 days, 8 hrs and 58 min.plugin by nickapedia
- 3i (6)
- Blog News (2)
- Book (4)
- certification (1)
- Citrix (4)
- Community (2)
- conference (1)
- EMC (3)
- ESX (32)
- ESX4 (12)
- exchange (4)
- Hyper-V (3)
- Microsoft (7)
- PowerCLI (68)
- PowerGUI (25)
- powershell (177)
- SCVMM (2)
- Training (9)
- twitter (1)
- UK PS User Group (2)
- UKVMUG (6)
- Uncategorized (104)
- VESI (23)
- VI4 (8)
- virtual (6)
- vmware (219)
- VMWorld (8)
- VMWorld Europe 09 (5)
- Windows7 (1)
- August 2010 (2)
- July 2010 (4)
- June 2010 (1)
- May 2010 (4)
- April 2010 (3)
- March 2010 (6)
- February 2010 (11)
- January 2010 (10)
- December 2009 (8)
- November 2009 (15)
- October 2009 (12)
- September 2009 (6)
- August 2009 (9)
- July 2009 (7)
- June 2009 (16)
- May 2009 (11)
- April 2009 (7)
- March 2009 (18)
- February 2009 (9)
- January 2009 (15)
- December 2008 (15)
- November 2008 (19)
- October 2008 (21)
- September 2008 (29)
- August 2008 (24)
- July 2008 (21)
- June 2008 (14)
- May 2008 (10)
- April 2008 (47)
- March 2008 (3)
- PowerCLI: Daily Report (158)
- PowerCLI: Daily Report V2 (120)
- vCheck (Daily Report) V3 (82)
- vCheck v5 (65)
- vDiagram – Draw your VI with one script (37)
- Exporting Virtual Infrastructure Information to MS Word (36)
- Virtual Twits (35)
- Workstation & Server Audit Script V3 (32)
- Running a PowerCLI Scheduled task (25)
- Virtu-Al VESI & PowerGUI PowerPack (22)
Chad King: Coudln't get this to work - is there an update to this script or how should I run this script? I...
Robert Walker: Very nice script. I can see how this will be very useful to us in the future. What are you using...
PowerCLI 4.1 Poster: [...] Fonte: http://www.virtu-al.net/2010/08/25/powercli-4-1-poster-and-quick-reference-guide/ [...]
PowerCLI + VMware vSphere Hardening | Aetmir.com: [...] and it’s wrapped around some functions already written to generate a cleanly formatted...
PowerShell Hacker #13: [...] Renouf wrote a nice PowerShell script, Simple PowerShell selection box, which takes a list of...
Daniel Hong: Great script! I was running into a bit of an issue with Win32_Product class, getting following...
Daniel: Hello Al, i´m a new to powershell and have a simple (or dumb) question: I want to set the ...
VOTE for the Top Free vSphere Tools of 2010: [...] PowerGUI and VMware PowerPacks [...]
My latest tweets
Follow me on Twitter!
- RT @derekscha: "PowerCLI is for Administrators!": Very cool. Won't get to implement half the coolness. #busy --> Thanks ! #VMWorldabout 2 hours ago
- RT @DuncanYB: We just reached our goal!! 12500 labs!!!! #labsrule #vmworld - Amazing stuff, you had better blog the config and details !about 4 hours ago
- Last presentation today, people were waiting at the door at 9:30 and it doesnt start till 10:30 - WOW ! - Looks like about 700 people today.about 4 hours ago
- RT @virtual_geek: @alanrenouf many thanks for creating vCheck v5. It is definetely at top of my powercli scripts list. --> Thanks so much !about 4 hours ago






about 1 year ago
Hi,
I saw your DailyReport script and it looks great but did not see any instructions on what is required to run it? Do you perhaps have some detail installation instructions for this, I’m sorry but I’m new to powershell.
Thanks
about 1 year ago
Hi!
Very Nice Script!
A very nice to have feature in the script would be if it showed the last 10-20 created machines. Is that possible? Something you allready thought of?
Regards,
Joakim
about 1 year ago
Hi I am looking at your nice Health check script, Can we download it is it free to use?
Regards
Amer
about 1 year ago
@Amer
Absolutely, Free to all !
about 1 year ago
@Joakim
Do you think that would be more useful than the vm’s created in the previous x days ? Its easily done but I think I will keep it as it is, Don’t worry though I will do a seperate post showing how to get this info so you can add it easily.
about 1 year ago
@billy somers
Ok all you need to do is this…..
1. Install Powershell
2. Install PowerCLI (Basic instructions here.. http://www.virtu-al.net/2008/08/13/getting-started-with-the-vi-toolkit/)
3. Download my script and save it somewhere like c:\temp\dailyreport.ps1
4. Launch PowerCLI, cd into c:\temp
5. Type .\DailyReport.ps1 myviserver
That should be about it, if you get stuck or need any more info please let me know.
about 11 months ago
Al,
I ran across your “Audit Script” on poshcode.com. There is a parser error that keeps coming up near the end and it looks like the file got cut off. Do you have any thoughts so I could try this?
Thanks,
Charlie
about 11 months ago
@Charlie Lonergan
Yeah I guess it was too long, you can find it on the Script List above or follow this link:
http://www.virtu-al.net/2009/01/09/powershell-workstationserver-audit-script-update/
about 11 months ago
Hi Al,
I use your script regularly, but i hate flat file and i love wiki. so i change some bits to fit my needs and know i can automatically integrate my Vm Environment in my (self wiki made) CMDB
Many thanks’ for your base script , and try mine if you have time
Ph Koenig
Aka UnclePhil
about 11 months ago
UnclePhil, what CMDB are you integrating with? I would love to see the results you get with your script.
about 10 months ago
I bumped into your site by accident and I seem to have stumbled on a pot of gold. I’m a PowerShell beginner and wanted to know how to properly run your Audit.PS1 script. When I run it on my test machine (right click and Run with PowerShell), the PowerShell windows comes up and then disappears about 10 seconds later. Is there something I’m doing wrong? Thanks for your time.
about 10 months ago
@Rurik
Welcome and thanks for the comment, Have you set your execution policy yet ? see here: http://www.microsoft.com/technet/scriptcenter/topics/msh/cmdlets/set-executionpolicy.mspx – I normaly use remotesigned
about 10 months ago
Man that was quick!! Silly me…..I have “Set-ExecutionPolicy Restricted” at the tail end of a script that runs daily to query some basic Exchange information. That must have blocked it. Thanks a bunch for pointing me in the right direction. I’ll continue to be an avid reader of your blog.
about 10 months ago
@Rurik
Glad it worked out and I will try and keep you interested !
about 10 months ago
Suggestion for a script, may not be easy.
Basic idea is that VMotion can screw up the auto-start for VMs (turn it off), why not have a script that runs daily and resets the desired auto-start of one’s important VMs??
There is I know a best practice for restarting VMs, it’s something like: AD/DNS virtual server if there is one (we also have a physical one), Virtual Center server, then other servers as desired.
One might or might not have DRS enabled, one likely has HA started.
Perhaps the user must create a text file with a list of VM names and a note about what is the VM’s function.
The script could look at this list, compare it to the existing list of VMs on the host, then do what is necessary to ensure the VMs are correctly set to auto-start, plus send a message to someone about this too.
It could become an adjunct to vCheck Daily Report??
Thank you for reading this, Tom
about 9 months ago
Hi
I new on poweshell, but it seem to be great tool.
I tryed dailyreport with the folowing problem.
Please specify a VI Server name eg….
powershell.exe DailyReport.ps1
What have i missed?
BR
Patrik
about 9 months ago
Awesome work all around!!! Really appreciate your scripts. Thank you.
I have noticed a new problem cropping up in vSphere 4. It seems that they added NUMA verification to the lastest code. So if your hosts do not have the correct memory layout then you will get errors on your ESX host. Is it possible to add a VESI script to check for memory layout? Maybe a best practice query?
Thanks,
Marc
about 9 months ago
I saw a webinar today that showed your powerpack for the virtualization echoshell.
Where can I download this?
about 9 months ago
@Marvin Blackburn
Sorry, I must update my script list, the link is here:
http://www.virtu-al.net/2009/11/14/vesi-powergui-powerpack-v2/
V3 will be released very soon.
about 6 months ago
Hi Alan,
I’ve been using your daily checks scripts for sometime now and can honestly say it helps me immeasurably.
We’ve recently upgraded our backup solution to a product that fully integrates with the new change block tracking features in the vStorage API. However, to get this fully working i need to add and set the ctkEnabled=true value in the configuration paraments as well as adding and setting the scsi0:0.ctkEnabled = true value for each virtual disk.
Is there an easy we to do this with powershell other than updating each VM indiviually?
Thanks
Graham
about 5 months ago
Hi Alan,
Could you please help. I have just patched all my hosts and I need to upgrade the tools on the guests. Is it possible to pass the update-tools cmdlet a parameter such as remove=hgfs. from what I can see this has been deprecated in PowerCli 4.0U1
Thanks
Simon
about 3 months ago
Hey there, Like the scripts you have obvious.ly put in a lot of time on this! I did note one omission, a script to shutdown multiple VMs in the event you need to power down a cluster or the entire infrastructure. So if you have one handy or know where to point me I would appreciate it….
about 2 months ago
@Rusty
Hi,
Try somehting like
get-cluster | get-vm | Where-Object {$_.powerstate -eq “PoweredOn”} | shutdown-VMGuest
You would have to be connected to the VC, that should be a good place to start.
about 2 months ago
Something happened to the code then….not sure what.
Put the Cluster Name after the get-cluster cmdlet. Like get-cluster MyCluster | …..
Omit the get-cluster cmdlet to shut down every VM on the VC.
about 2 months ago
Could you add the extra features of this healt check script? http://www.ivobeerens.nl/?p=256
Especially the “vmware tools old” section?
This way we keep in mind to update to the latest version.
—
Note that I have “Unable to populate snapshot size due to unsufficient permissions”, however the user I run the script with should have enough priviliges.
Cheers,
S.
about 1 month ago
Hi there,
Thanks for your vcheck script. I am very new to powershell and I wad wondering if in the snapshots category, in addition of having that total size of the vm under “sizeMB”, could we also have the size taking by the snapshots.
I am interested in the amount of data space that is taken by the actual snapshot.
about 1 month ago
Al,
I love the vCheck script and use it regularly for server auditing. However, I’d like to understand how to change three aspects of the script:
1. Report in excel vice html
2. Report on multiple servers in one report
3. Report on any combination of characteristics: ie hotfixes and printers for the multiple servers.
Thanks in advance for your help.