This file contains 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
#Check script run as administrator | |
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit } | |
Set-Location -Path $PSScriptRoot | |
$ninioConolePort = 8443 | |
$minioDataRoot = "C:\minioData" | |
foreach($i in 1..4){ | |
New-Item -ItemType Directory -Path $minioDataRoot -Name $i | |
} |
This file has been truncated, but you can view the full file.
This file contains 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
{ | |
"info": { | |
"_postman_id": "3f100323-72de-47c0-a14a-ea11fcb692f4", | |
"name": "REST API service for Veeam backup & Replication", | |
"description": "REST API service for Veeam backup & Replication\n\nContact Support:\nEmail: [email protected]", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "api", |
This file contains 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
hostname ansible01 | |
dnf install -y epel-release | |
dnf upgrade -y | |
dnf install -y open-vm-tools python3 git | |
useradd ansible | |
su ansible | |
echo 'ansible ALL=(ALL) NOPASSWD:ALL' >> visudo | |
pip3 install --user ansible |
This file contains 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-ClusterSLO { | |
<# | |
.NOTES | |
=========================================================================== | |
Created by: Markus Kraus | |
Twitter: @VMarkus_K | |
Private Blog: mycloudrevolution.com | |
=========================================================================== | |
Changelog: | |
2020.08 ver 1.0 Base Release |
This file contains 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
# Generate Key | |
$ gpg --gen-key | |
# List Keys | |
$ gpg --list-secret-keys --keyid-format LONG | |
# Show Public Key Block | |
$ gpg --armor --export F5900F8A49F4FB76 | |
# Add Key to git Config |
This file contains 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
# Parameters | |
$ClusterName = "win" | |
$DatastoreName = "scratch00" | |
# Get Cluster | |
$Cluster = Get-Cluster -Name $ClusterName | |
# Disable VM DRS Roles | |
$Cluster | Get-DrsRule | Set-DrsRule -Enabled:$false |
This file contains 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 Start-ClusterPatch { | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory=$True, ValueFromPipeline=$True, HelpMessage="vSphere Cluster to Patch")] | |
[ValidateNotNullorEmpty()] | |
[VMware.VimAutomation.ViCore.Impl.V1.Inventory.ComputeResourceImpl] $Cluster, | |
[Parameter(Mandatory=$True, ValueFromPipeline=$false, HelpMessage="Site to Process")] | |
[ValidateNotNullorEmpty()] | |
[ValidateSet("DC1","DC2")] | |
[String] $SiteToProcess, |
This file contains 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
# External References | |
## https://github.com/rumart/vSpherePerfData/blob/master/vcsa/appliance_health.ps1 | |
# Config | |
$vCenter = "<vCenter FQDN>" | |
$Metrics = "applmgmt","database-storage","load","mem","software-packages","storage","swap","system" | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
# Create Credentials | |
#$Credentials = Get-Credential -Message "Vami Crendetials" |
This file contains 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
Param ( | |
[Parameter(Mandatory=$True, ValueFromPipeline=$False, HelpMessage="Veeam BR Credentials")] | |
[ValidateNotNullorEmpty()] | |
[PSCredential]$VeeamCred, | |
[Parameter(Mandatory=$True, ValueFromPipeline=$False, HelpMessage="Veeam BR Server")] | |
[ValidateNotNullorEmpty()] | |
[String]$VeeamVBRServer, | |
[Parameter(Mandatory=$True, ValueFromPipeline=$False, HelpMessage="Veeam Backup Job Scale-Out Repository Name")] | |
[ValidateNotNullorEmpty()] | |
[ValidateSet("SOR_03","SOR_06")] |
This file contains 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-MyESXiOption { | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory=$True, ValueFromPipeline=$False, Position=0)] | |
[String] $Name, | |
[Parameter(Mandatory=$False, ValueFromPipeline=$False, Position=1)] | |
[String] $Value | |
) | |
process { | |
$myESXiOption = Get-AdvancedSetting -Entity $VMhost -Name $Name |
NewerOlder