Scripting

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 […]

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 […]