Skip to content

Instantly share code, notes, and snippets.

View PatrickTerlisten's full-sized avatar

Patrick Terlisten PatrickTerlisten

View GitHub Profile
@PatrickTerlisten
PatrickTerlisten / Create-DataCoreSSVBackup.ps1
Last active December 1, 2015 16:18
This script creates a backup of the DataCore SANsymphony-V configuration.
<#
.SYNOPSIS
No parameters needed. Just execute the script.
.DESCRIPTION
This script creates a backup of the DataCore SANsymphony-V configuration.
.EXAMPLE
Create-DataCoreSSVBackup
@PatrickTerlisten
PatrickTerlisten / Reclaim-ThinVMDK.ps1
Last active February 21, 2018 15:30
This script uses sdelete to zero-out all disks of a Windows VM. Afterwards, the VM is moved between datastores to reclaim zeroed space.
<#
.SYNOPSIS
No parameters needed. Just execute the script.
.DESCRIPTION
This script uses sdelete to zero-out all disks of a Windows VM. Afterwards, the VM
is moved between datastores to reclaim zeroed space.
History
v1.3: Redesign.
@PatrickTerlisten
PatrickTerlisten / Get-VMWorkingDirMismatch.ps1
Last active December 5, 2015 08:25
This script outputs a list of all VMs where VM inventory name and working directory name doesn't match.
#requires -Version 1
#requires -PSSnapin VMware.VimAutomation.
function Get-VMWorkingDirMismatch {
<#
.SYNOPSIS
No parameters needed. Just execute the script.
.DESCRIPTION
@PatrickTerlisten
PatrickTerlisten / Get-OutdatedVMTools.ps1
Last active December 5, 2015 08:24
This script outputs a list of all VMs without VMware Tools or with VMware Tools that needs to be updated.
#requires -Version 1
#requires -PSSnapin VMware.VimAutomation.Core
function Get-OutdatedVMTools {
<#
.SYNOPSIS
No parameters needed. Just execute the script.
.DESCRIPTION
@PatrickTerlisten
PatrickTerlisten / Get-MemoryBallooningStats.ps1
Last active December 5, 2015 08:23
This script outputs a list of all VMs that suffer from memory ballooning
#requires -Version 1
#requires -PSSnapin VMware.VimAutomation.Core
function Get-MemoryBallooningStats {
<#
.SYNOPSIS
No parameters needed. Just execute the script.
.DESCRIPTION
@PatrickTerlisten
PatrickTerlisten / Get-LunPathState.ps1
Last active January 5, 2020 06:54
PowerCLI Script that outputs a list of all LUN paths for all ESXi hosts
#requires -Version 2
#requires -PSSnapin VMware.VimAutomation.Core
function Get-LUNPathState {
<#
.SYNOPSIS
No parameters needed. Just execute the script.
.DESCRIPTION
This script outputs the number of paths to each LUN.
#requires -Version 3 -Modules Azure
Function Start-AllAzureVMs {
<#
.SYNOPSIS
Simply run Start-AllAzureVMs without any parameter.
.DESCRIPTION
This script starts all Microsoft Azure VMs that are in the "StoppedDeallocated" state.