Configure ESX Power Management with PowerCLI
View current Power Management Policy Key ShortName GUI Equivilent 1 static High Performance 2 dynamic Balanced 3 low Low power 4 custom Custom Environmental Information: ESX 5.5
View current Power Management Policy Key ShortName GUI Equivilent 1 static High Performance 2 dynamic Balanced 3 low Low power 4 custom Custom Environmental Information: ESX 5.5
Clear all existing SNMP Trap Targets Set SNMP trap target(s) Note: There is a maximum of three (3) trap targets allowed. See link below Configure SNMP Targets Display the current […]
Configuring some ESX hosts with PowerCLI and was setting syslog to my loginsight server. I kept getting errors advising that the Syslog.Global.LogHost option does not exist. I know this option […]
How do you do a silent installation of PowerCLI and the VUM snapin? VMware-PowerCLI-5.5.0-1671586.exe /s /qn /w /V”/qr /L*v PowerCLI.log ADDLOCAL=”vCloud”” VMware-UpdateManager-Pscli-5.5.0-1302474.exe /s /qn /w /V”/qr /L*v PowerCLI-VUM.log” Note: ensure […]
I often create file names such as logs with the current date and was tired of having to create the date string for all my scripts, so created these quick […]
Whilst doing some string manipulation recently was having issues getting the correct data, or rather the data I expected. Consider the following: The result is a -1, which is not […]
Running Perl script with parameter from within Powershell Window Whilst doing automated configuration of ESXi4.x I need to install hardware specific bundles for example HP CIM providers. Now the PowerCLI […]
Create a temporary file in the TMP environment variable location in powershell: So as an example the above will create something like this: C:\Users\\AppData\Local\Temp\tmp3472.tmp This $TempFile variable can then be […]
Had a question the other day from a colleague about how to get access to WMI from within Powershell and thought that I might post it up to help others, […]