Skip to content

Instantly share code, notes, and snippets.

View vMarkusK's full-sized avatar

Markus Kraus vMarkusK

View GitHub Profile
function New-VeeamTenant {
<#
.SYNOPSIS
Creates a vCloud Tenant Configuguration for Veeam Backuo & Replication
.DESCRIPTION
Creates a vCloud tenent Configuration for Veeam Backup & Replication.
The Function leverages the Veeam Ent. Manager API. The Backup Jobs need to be created seperate
@vMarkusK
vMarkusK / NatRules.ps1
Created June 7, 2017 11:25 — forked from alanrenouf/NatRules.ps1
Working with vCD Edge Gateway Rules in PowerCLI
Function New-DNATRule (
$EdgeGateway,
$ExternalNetwork,
$OriginalIP,
$OriginalPort,
$TranslatedIP,
$TranslatedPort,
$Protocol) {
$Edgeview = Search-Cloud -QueryType EdgeGateway -name $EdgeGateway | Get-CIView
if (!$Edgeview) {
@vMarkusK
vMarkusK / Konfig-ESXi.psm1
Created December 22, 2016 22:27
Sets the Basic settings for a new ESXi
function Konfig-ESXi {
<#
.NOTES
===========================================================================
Created by: Markus Kraus
Twitter: @VMarkus_K
Private Blog: mycloudrevolution.com
===========================================================================
Changelog:
2016.12 ver 1.0 Base Release
@vMarkusK
vMarkusK / Recommend-Sizing.psm1
Last active December 5, 2016 11:37
This Function collects Basic vSphere Informations for a Hardware Sizing Recomamndation. Focus is in Compute Ressources.
function Get-VMmaxIOPS {
<#
.NOTES
===========================================================================
Created by: Markus Kraus
Twitter: @VMarkus_K
Private Blog: mycloudrevolution.com
===========================================================================
Changelog:
2016.10 ver 1.0 Base Release
@vMarkusK
vMarkusK / Start-UNMAP.psm1
Created September 26, 2016 08:44
This Function will process SCSI UNMAP on VMware Datastores via ESXCLI -V2
function Start-UNMAP {
<#
.SYNOPSIS
Process SCSI UNMAP on VMware Datastores
.DESCRIPTION
This Function will process SCSI UNMAP on VMware Datastores via ESXCLI -V2
.Example
Start-UNMAP -ClusterName myCluster -DSWildcard *RAID5*
@vMarkusK
vMarkusK / Windows2012-SoftResetTSC.ps1
Created September 19, 2016 14:57
Fix: Rebooting Windows 8 or 2012 Server or later virtual machines fail at the Microsoft Windows boot splash screen.
<#
.SYNOPSIS
Add monitor_control.enable_softResetClearTSC = TRUE
.DESCRIPTION
Add monitor_control.enable_softResetClearTSC = TRUE to the virtual machines advanced configuration
.Example
./Windows2012-SoftResetTSC.ps1
@vMarkusK
vMarkusK / PRTG-ScheduledTask.ps1
Last active September 14, 2016 10:48
PRTG Advanced Scheduled Task Sensor
<#
.SYNOPSIS
PRTG Advanced Scheduled Task Sensor
.DESCRIPTION
This Advanced Sensor will report Task Statistics.
.EXAMPLE
PRTG-ScheduledTask.ps1 -ComputerName myComputer.lan.local -TaskName "myTaskName"
@vMarkusK
vMarkusK / PRTG-Veeam-CloudVMs.ps1
Last active November 3, 2016 11:13
PRTG Veeam Cloud Connect Usage Sensor
<#
.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>
@vMarkusK
vMarkusK / Get-VMmaxIOPS,ps1
Last active August 10, 2016 15:26
This will Create a vSphere VM Disk IOPS Report
function Get-VMmaxIOPS {
<#
.NOTES
===========================================================================
Created by: Markus Kraus
Twitter: @vMarkus_K
Private Blog: mycloudrevolution.com
===========================================================================
Changelog:
2016.08 ver 1.0 Base Release
@vMarkusK
vMarkusK / Get-vmUUIDs.ps1
Last active July 22, 2016 07:08
Reports all vSphere VM UUIDs
$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