Skip to content

Instantly share code, notes, and snippets.

View JM2K69's full-sized avatar
💻
At school

Jérôme Bezet-Torres [MVP] JM2K69

💻
At school
View GitHub Profile
@JM2K69
JM2K69 / TrueNas VMwware Lab.ps1
Last active March 9, 2023 02:08
TrueNas VMwware Lab
# Author: Jérôme Bezet-Torres
# Twitter: @JM2K69
# Website: jm2k69.github.io
# Network and Domain Data ##
$network = "10.0.0."
$domain = "vexpert.lab"
$VCSASSODomainName = "vsphere.local"
$TrueNasIP = "172.18.0.4"
terraform apply -auto-approve
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# vsphere_vapp_container.vapp_container will be created
+ resource "vsphere_vapp_container" "vapp_container" {
+ cpu_expandable = true
@JM2K69
JM2K69 / .tf
Created June 30, 2021 13:08
Debug Output Terraform
terraform apply -auto-approve
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# vsphere_vapp_container.vapp_container will be created
+ resource "vsphere_vapp_container" "vapp_container" {
+ cpu_expandable = true
function New-TestINTEGER
{
[CmdletBinding()]
[Alias()]
[OutputType([int])]
Param
(
[Parameter (Mandatory = $true)]
[Int]$Volsize,
[Parameter (Mandatory = $true)]
@JM2K69
JM2K69 / meta.ps1
Created November 14, 2019 16:05 — forked from SQLDBAWithABeard/meta.ps1
meta powershell notebook
## This PowerShell will create a PowerShell Notebook which will create a PowerShell Notebook!
# This serves no useful purpose :-)
$introCelltext = "# This notebook will create a notebook"
$SecondCelltext = "### Installation
You can install ADSNotebook from the PowerShell Gallery using `Install-Module ADSNotebook` "
$thirdcelltext = " `$introCelltext = ' # This notebook was created by a notebook '
`$SecondCelltext = '### Installation
You can install ADSNotebook from the PowerShell Gallery using `Install-Module ADSNotebook` '
`$thirdcelltext = 'Install-Module dbatools'
function Found-ADK
{
[CmdletBinding()]
param
(
[Parameter(Mandatory = $true)]
$OsCulture = 'FR-FR'
)
switch ($OsCulture)
@JM2K69
JM2K69 / Get-LatestUpdate.ps1
Created July 31, 2017 12:11
Update Get-LatestUpdates to ensure to have a cumulative Update to download.
function Get-LatestUpdate
{
<#
.SYNOPSIS
Get the latest Cumulative update for Windows
.DESCRIPTION
This script will return the list of Cumulative updates for Windows 10 and Windows Server 2016 from the Microsoft Update Catalog.
.NOTES