This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Tells you how to get Awsome. | |
.DESCRIPTION | |
Tells you how to get Awsome. | |
.EXAMPLE | |
Get-Awsome | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start Load VMware Snapin (if not already loaded) | |
if (!(Get-PSSnapin -Name VMware.VimAutomation.Core -ErrorAction SilentlyContinue)) { | |
if (!(Add-PSSnapin -PassThru VMware.VimAutomation.Core)) { | |
# Error out if loading fails | |
Write-Error "ERROR: Cannot load the VMware Snapin. Is the PowerCLI installed?" | |
Exit | |
} | |
} | |
# End Load VMware Snapin (if not already loaded) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start of Settings | |
# Set the maximum number of paths per LUN | |
$MaxLUNPaths = 4 | |
# End of Settings | |
$myHosts = $VMH | where {$_.ConnectionState -eq "Connected" -and $_.PowerState -eq "PoweredOn"} | |
$Report = @() | |
foreach ($myHost in $myHosts) { | |
$esxcli2 = Get-ESXCLI -VMHost $myHost -V2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Set-ConsolidationFix { | |
[cmdletbinding()] | |
param ( | |
#[parameter(Mandatory=$true)] | |
[parameter(Mandatory=$true,ValueFromPipeline=$true)] | |
[VMware.VimAutomation.ViCore.Types.V1.Inventory.VirtualMachine]$myVM, | |
[parameter(Mandatory=$true)] | |
[string]$Fix = "Timeout" # Timeout or Stun |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start Load VMware Snapin (if not already loaded) | |
if (!(Get-PSSnapin -Name VMware.VimAutomation.Core -ErrorAction SilentlyContinue)) { | |
if (!(Add-PSSnapin -PassThru VMware.VimAutomation.Core)) { | |
# Error out if loading fails | |
Write-Error "ERROR: Cannot load the VMware Snapin. Is the PowerCLI installed?" | |
Exit | |
} | |
} | |
# End Load VMware Snapin (if not already loaded) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$myVMs = Get-VM TST* | sort Name | |
$MyView = @() | |
ForEach ($myVM in $myVMs){ | |
$UUIDReport = [PSCustomObject] @{ | |
Name = $myVM.name | |
UUID = $myVM.extensiondata.Config.UUID | |
InstanceUUID = $myVM.extensiondata.config.InstanceUUID | |
LocationID = $myVM.extensiondata.config.LocationId | |
MoRef = $myVM.extensiondata.Moref.Value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-VMmaxIOPS { | |
<# | |
.NOTES | |
=========================================================================== | |
Created by: Markus Kraus | |
Twitter: @vMarkus_K | |
Private Blog: mycloudrevolution.com | |
=========================================================================== | |
Changelog: | |
2016.08 ver 1.0 Base Release |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
PRTG Veeam Cloud Connect Usage Sensor | |
.DESCRIPTION | |
Advanced Sensor will Report Cloud Connect Tenant Statistics | |
.EXAMPLE | |
PRTG-Veeam-CloudVMs.ps1 -Server VeeamEM.lan.local -HTTPS:$True -Port 9398 -Authentication <dummy> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
PRTG Advanced Scheduled Task Sensor | |
.DESCRIPTION | |
This Advanced Sensor will report Task Statistics. | |
.EXAMPLE | |
PRTG-ScheduledTask.ps1 -ComputerName myComputer.lan.local -TaskName "myTaskName" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Add monitor_control.enable_softResetClearTSC = TRUE | |
.DESCRIPTION | |
Add monitor_control.enable_softResetClearTSC = TRUE to the virtual machines advanced configuration | |
.Example | |
./Windows2012-SoftResetTSC.ps1 |