Skip to content

Instantly share code, notes, and snippets.

@shannonfritz
shannonfritz / inovelli_vzm31.yaml
Last active September 21, 2023 21:11
Inovelli 2-in-1 VZM31 Home Assistant Blueprint
blueprint:
name: Inovelli VZM31 2-in-1 switch+dimmer v0.02
description: Create automations for multi-tap of buttons on the Inovelli Blue Series 2-in-1 switch + dimmer, model VZM31-SN
domain: automation
input:
inovelli_vzm31:
name: Inovelli VZM31
description: Inovelli VZM31 2-in-1 Switch (action).
selector:
device:
@shannonfritz
shannonfritz / Test-Windows365Endpoints.ps1
Last active December 16, 2024 21:12
Test network connectivity to endpoints used by Windows 365 Cloud PCs
$ScriptName = 'Test-Windows365Endpoints'
$ScriptVer = 'v0.06'
# Test network connectivity to Windows 365 Services (including AVD and Intune)
# There are now two ways to use this script:
# 1. Run from the Cloud PC or a VM connected to an Azure VNet where CPCs will be provisioned
# 2. Run from the Client PC or a device connected to the Network where the client device is used
# Run this script directly from this gist using the command below
@shannonfritz
shannonfritz / QuickAssist.ps1
Last active March 3, 2025 22:11
Launcher for the Quick Assist Store App
# Quick Assist App Launcher v0.02
# To easily run Quick Assist from a command prompt, first
# Save this script to 'c:\windows\system32\quickassist.ps1', then
# Copy the next line to 'c:\windows\system32\quickassist.cmd'
# @powershell.exe -executionpolicy remotesigned -command "%windir%\system32\quickassist.ps1"
# from a comand prompt, just type 'quickassist' to run the cmd which will run the ps1
$whoiam = [system.security.principal.windowsidentity]::getcurrent().name
@shannonfritz
shannonfritz / Remediate-QuickAssistCoExists.ps1
Last active June 12, 2022 17:36
Intune Remediation for Quick Assist Co-Existence
$ScriptName = 'Remediate-QuickAssistCoExists-v0.06'
# When both the 'old' and the 'new' quick assist apps are installed, remove the old one, make launcher scripts
# Log to the ProgramData path for IME. If Diagnostic data is collected, this .log should come along for the ride.
$logpath = "$env:ProgramData\Microsoft\IntuneManagementExtension\Logs"
Start-Transcript -Path "$('{0}\{1}-{2}.log' -f $logpath, $ScriptName, $(Get-Date).ToFileTimeUtc())" | Out-Null
# Delete log files that are more than 35 days old
Get-ChildItem -Path "$logpath\$ScriptName*.log" -File | Where-Object {$PSItem.CreationTime -lt (Get-Date).AddDays(-35)} | Remove-Item -Force | Out-Null
# Get-ChildItem -Path "$logpath\$ScriptName*.log" -File | Select-Object Name,CreationTime,@{n='AgeInDays';e={(New-TimeSpan -Start $PSItem.CreationTime).Days}}
@shannonfritz
shannonfritz / Detect-QuickAssistCoExists.ps1
Last active June 12, 2022 17:36
Intune Detection for Quick Assist Co-Existence
$ScriptName = 'Detect-QuickAssistCoExists-v0.05'
# Derermine if both the 'old' and the 'new' quick assist apps are installed
# Log to the ProgramData path for IME. If Diagnostic data is collected, this .log should come along for the ride.
$logpath = "$env:ProgramData\Microsoft\IntuneManagementExtension\Logs"
Start-Transcript -Path "$('{0}\{1}-{2}.log' -f $logpath, $ScriptName, $(Get-Date).ToFileTimeUtc())" | Out-Null
# Delete log files that are more than 35 days old
Get-ChildItem -Path "$logpath\$ScriptName*.log" -File | Where-Object {$PSItem.CreationTime -lt (Get-Date).AddDays(-35)} | Remove-Item -Force | Out-Null
# Get-ChildItem -Path "$logpath\$ScriptName*.log" -File | Select-Object Name,CreationTime,@{n='AgeInDays';e={(New-TimeSpan -Start $PSItem.CreationTime).Days}}
@shannonfritz
shannonfritz / zwp_wd100.yaml
Last active March 10, 2022 00:04
ZWP WD-100 Home Assistant Blueprint
blueprint:
name: ZWP WD-100 Dimmer (Z-Wave JS) v0.02
description: Create automations for the ZWP WD-100 Dimmer using the Z-Wave JS integration.
domain: automation
input:
wd100:
name: Dimmer Device
description: List of available ZWP WD-100 Dimmers
selector:
device:
@shannonfritz
shannonfritz / ge_zw4008.yaml
Created March 9, 2022 23:25
GE/Jasco 46201 / ZW4008 Home Assistant Blueprint
blueprint:
name: GE/Jasco 46201 / ZW4008 Switch (Z-Wave JS) v0.02
description: Create automations for the GE/Jasco Switches using the Z-Wave JS integration.
domain: automation
input:
ge_jasco:
name: Switch Device
description: List of available GE/Jasco 46201 / ZW4008 switches
selector:
device:
@shannonfritz
shannonfritz / ge_zw4005.yaml
Created March 9, 2022 23:24
GE/Jasco 14291 / ZW4005 Home Assistant Blueprint
blueprint:
name: GE/Jasco 14291 / ZW4005 Switch (Z-Wave JS) v0.01
description: Create automations for the GE/Jasco Switches using the Z-Wave JS integration.
domain: automation
input:
ge_jasco:
name: Switch Device
description: 'List of available GE/Jasco 14291 / ZW4005 switches
NOTE: This device does not have Z-Wave event for Single Tap up or down'
@shannonfritz
shannonfritz / homeseer_hs-wx300.yaml
Last active March 10, 2022 00:03
HomeSeer HS-WX300 Home Assistant Blueprint
blueprint:
name: HomeSeer HS-WX300 (Z-Wave JS) v0.05
description: Create automations for the HomeSeer HS-WX300 Dimmer using the Z-Wave JS integration.
domain: automation
input:
homeseer_wx300:
name: HomeSeer HS-WX300
description: List of available HomeSeer HS-WX300 dimmers.
selector:
device:
@shannonfritz
shannonfritz / keybase.md
Created February 28, 2020 16:19
Proof for keybase

Keybase proof

I hereby claim:

  • I am shannonfritz on github.
  • I am mrshannon (https://keybase.io/mrshannon) on keybase.
  • I have a public key whose fingerprint is E02A F99D 16C3 6000 EE63 AD24 A6B6 D14A 711A 4575

To claim this, I am signing this object: