Skip to content

Instantly share code, notes, and snippets.

$global:HostVar = $Host
$Branch = "test"
$Version = "v0.0.7"
$Title = @"
GIST - Gist Intune Script Trigger $Version ($Branch) by https://x.com/MrWyss
Source: https://github.com/MrWyss-MSFT/gist
`u{1F195}: New Menu by jonasgit & directly call scripts by number (e.g. iwr gist.ittips.ch/5 | iex)
"@
$GistCatalog = @(
@MrWyss
MrWyss / Copy-AutoPilotHashToClipboard.ps1
Created March 19, 2024 20:28
Copy-AutoPilotHashToClipboard.ps1
#requires -RunAsAdministrator
(Get-CimInstance -Namespace root/cimv2/mdm/dmmap -Class MDM_DevDetail_Ext01 -Filter "InstanceID='Ext' AND ParentID='./DevDetail'").DeviceHardwareData | clip
@MrWyss
MrWyss / 4khwhashdecipher.hexpat
Last active April 2, 2024 12:04
4k hw hash decipher
import std.core;
import std.string;
import type.mac;
import type.guid;
import type.base64;
import type.time;
namespace OA3TOOL {
struct Header {
char fileType[2];
@MrWyss
MrWyss / Update-CMGAuthCert.ps1
Created August 26, 2023 13:06
Deployment script for certify the web
<#
# either $true or $false
$result.IsSuccess
# object containing all information Certify has about the saved Site
$result.ManagedItem
# the IIS (or other service) site ID
$result.ManagedItem.ServerSiteId # ex: 1, 2, 3, ...
@MrWyss
MrWyss / argon40_fan_control.yaml
Created December 16, 2020 21:54
HA Blueprint for a argon40 case fan control automation
blueprint:
name: "Argon40 Case: Set fan speed to XX % if CPU is above YY °C and lower than ZZ °C"
description: Controls the speed of the argon40 case fan depending on the cpu temperature
domain: automation
input:
cpu_temperature:
name: CPU Temperature Sensor Entity
description: This is the Raspberry Pi's CPU Temperature sensor.
default: sensor.cpu_temp
selector: