Powershell

Subscribe via RSS →
2 min read

Those Annoying thing in Powershell

Powershell v2.0 has a cmdlet that allows you to send an email Send-MailMessage NAME Send-MailMessage SYNOPSIS Sends an e-mail message. SYNTAX Send-MailMessage [-To] <string[]> [-Subject] …

  • Scripting
  • Powershell
  • Troubleshooting
2 min read

How to Speed Up Your PowerCLI Queries

It is a known fact that using PowerCLI there are more than one way to skin a cat - or more than one way to access the SDK and the properties that you would like to get. Take for example getting all …

  • vSphere
  • Scripting
  • Powershell
  • Administration
2 min read

Small Quirk with Get-View vs. Get-VM

I was trying something last night to compare the speed of the two Cmdlets here. I noticed something though. While running the command I wanted to check against how many machines I was running the …

  • vSphere
  • Scripting
  • Powershell
  • Administration
5 min read

Deploy-ESXi v1.0 - My ESXi Script-0-Mania entry

As I posted a few weeks ago - I entered the ESXi Script-0-Mania Contest. Unfortunately, my entry was not chosen as one of the top entries, but hey - I don’t do this for the money - I enjoy what …

  • Tools
  • vSphere
  • Scripting
  • Powershell
1 min read

Distribution and Security Groups

I was asked to day at work, “What would be the quickest way to add all of the members of a Distribution Group to a Security Group?”, the reason of course being because you cannot assign …

  • Active Directory
  • Tools
  • Management
  • Scripting
2 min read

Generate a Random Password - Powershell

A task that I do quite often when building a new System is to create random password a local user on the machine – Don’t ask – it is a an OPSEC requirement from way before my time. So instead of …

  • Tools
  • Security
  • Powershell
  • Administration
2 min read

Quick Powershell tip - Remote Windows Management

Something that I do every now and again (almost every day - many times per day) is to connect to the Event Viewer / Computer Management / Services console of a Remote Windows machine for …

  • Microsoft
  • Tools
  • Scripting
  • Powershell
2 min read

How to Throttle Removing ESX Snapshots

Recently we had a planned maintenance window that required shutting down power to the entire building. As part of the procedure we created snapshots of each VM before the powerdown. With PowerCLI this …

  • Tools
  • Management
  • Powershell
  • Administration
2 min read

Optimize NFS settings for Celerra

In continuation to both Jason Boche’s and Scott Lowe’s excellent posts about the recommended Advanced Settings for ESX while using a Celerra NFS mount, and after Jase McCarty’s post …

  • vSphere
  • Powershell
  • Administration
  • VMware
6 min read

vCenter PowerCLI Migration Script

As I promised in a previous post I wanted to migrate from a vCenter to whole new machine Process was: Export folders Export VM locations in Folders Export Permissions Export Custom Attributes Create …

  • Virtualization
  • Scripting
  • Powershell
  • Administration