PeetersOnline.nl
Virtually Everything about Powershell and PowerCLI
  • About Me
  • Script Repository
    • Set-VMVideoAccLevel
    • Compare-Clusters
    • Get-VMDiskUsage
    • Create-VMDiskOverview

Set VMware Snapshot Location with Powershell

By admin On August 27, 2009 · 13 Comments

Snapshots are m*th3rfcukers. If you’re not careful, they will mass-murder your vms. Yet they allow you to time-travel! You want to use them, but how to prevent a massacre? Here’s how: relocate the delta files.

When you create a snapshot, the current state of the vm is preserved by leaving the disk files alone. All changes [...]

Continue Reading →

User Confirmation in Powershell

By admin On July 15, 2009 · Leave a Comment

Built-in cmdlets usually offer the -Confirm parameter whenever you need user confirmation. When writing your own scripts, you might want to ask the eventual user of the script for confirmation yourself. This handy little function (store it in your profile!) allows you to ask for confirmation whenever, where-ever. (Try not to bug your users too [...]

Continue Reading →

Create a vSwitch Port Overview with Powershell

By admin On June 24, 2009 · 2 Comments

WARNING: VMware vmotion does not check wether there are sufficient ports available on the virtual switch on the destination host. Migrating a vm to a host with insufficient ports will cause the vmotion to complete without warnings, yet the virtual NIC will be disconnected! This issue is descripbed in this KB article.

Continue Reading →

Examine VMware CPU Ready Times with Powershell

By admin On June 12, 2009 · 10 Comments

When your (VMware) consolidation ratios are becoming high, it might be smart to keep an eye on your vm’s CPU Ready Times. Unfortunately, by default, the VI Client will only show realtime ready time statistics. Plus you’d have to look at each vm individually. Thank God VMware for the

Continue Reading →

Managing Scheduled Tasks Remotely Using Powershell

By admin On June 4, 2009 · 14 Comments

The following Powershell functions allow you to manage querying, creating and removing scheduled tasks on one or more computers remotely.
The functions use schtasks.exe, which is included in Windows. Unlike the Win32_ScheduledJob WMI class, the schtasks.exe commandline tool will show manually created tasks, as well as script-created ones. The examples show some, [...]

Continue Reading →

Increment PowerGUI Xml Version with Powershell

By admin On June 2, 2009 · 1 Comment

If you are using PowerGUI (which you should) and some of your collaegues do too, you might want to use a central configuration. Whenever you want to update the central configuration xml file, you need to increment the version number in order to push this change out to your collaegues. The following function [...]

Continue Reading →

Get SQL database size using Windows Powershell

By admin On May 26, 2009 · 4 Comments

The following script examines servers from (part of) your Active Directory domain, identifies SQL servers and lists the instances with their total database sizes.

Continue Reading →

Oneliner: Service Console IP with PowerCLI

By admin On May 26, 2009 · 4 Comments

Getting the Service Console IP addresses of your ESX servers with vSphere PowerCLI (formerly known as the VI Toolkit for Powershell):

Get-VMHost | Select Name, @{N="ConsoleIP";E={(Get-VMHostNetwork).ConsoleNic | ForEach{$_.IP}}}

Continue Reading →

Synchronize WSUS with Powershell

By admin On April 4, 2009 · 5 Comments

Yesterday, I showed you how to script the WSUS Cleanup Wizard with Powershell. Today, the WSUS fun continues! Here’s how to use powershell to “manually” synchronize your WSUS server, i.e. download the latest updates.

Continue Reading →

WSUS Cleanup with Powershell

By admin On April 3, 2009 · 21 Comments

If you manage a Windows Server Update Services (WSUS) server, you probably run the Server Cleanup Wizard every once and a while. It removes old and superseded updates and computers that haven’t reported their status for more than 30 days. Wouldn’t it be nice to schedule such a cleanup to run every month? Too bad [...]

Continue Reading →
← Previous Entries Next Entries →
  • Tags

    Active Directory API bind order cleanup cluster CPU Custom Fields datastores description device management directory tree errors Event Log file name filter Fun function HA IT known issues License Server LUN multipath NIC objects Oneliner portgroups PowerCLI PowerShell profile recursive Registry Scripts security session share snapshots SQL Stat VI Toolkit VMware vSphere WMI WSUS Zen
  • Popular Posts

    • Oneliner: Get Logged on Users with Powershell
    • Listing AD Group Members Recursively with Powershell
    • Gather NIC properties (including Speed and Duplex)
    • Listing share permissions for remote shares
    • Get VMware Disk Usage with Powershell
  • Recent Comments

    • Jon on Finding Shares with Powershell
    • Chris McEwan on Examine VMware CPU Ready Times with Powershell
    • Chris McEwan on Examine VMware CPU Ready Times with Powershell
    • Thomas on Poor Man’s Virtual Machine Backup with PowerCLI
    • KrazY on Gather NIC properties (including Speed and Duplex)
  • Twitter

    Error: Please make sure the Twitter account is public.

  • Archives

    • July 2012
    • July 2011
    • February 2011
    • January 2011
    • December 2010
    • May 2010
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
  • Categories

    • Fun
    • Oneliners
    • PowerCLI 4.0
    • PowerGUI
    • PowerShell
    • SQL
    • Uncategorized
    • VI Toolkit 1.5
    • VMware
    • WSUS
    • Zen
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
"Error: Please make sure the Twitter account is public." — hugopeeters

PeetersOnline.nl

Pages

  • PowerShell
  • Oneliners
  • VMware
  • PowerCLI 4.0
  • VI Toolkit 1.5
  • Fun
  • SQL
  • WSUS
  • Uncategorized
  • Zen

The Latest

  • Poor Man's Virtual Machine Backup with PowerCLI
    Are you still performing old-school in-guest VM backups with a backup agent? […]

More

Thanks for dropping by! Feel free to join the discussion by leaving comments, and stay updated by subscribing to the RSS feed.
© 2012 PeetersOnline.nl
Platform by PageLines