Skip to content

Instantly share code, notes, and snippets.


Aaron Parker aaronparker

View GitHub Profile
aaronparker / text.xml
Created Jan 29, 2023
English translation from the NuPhy Console - `C:\Program Files (x86)\NuPhy Console\52\text.xml`
View text.xml
<?xml version="1.0" encoding="utf-16"?>
<tc_tipfordevcfg>Please set the switch to Windows</tc_tipfordevcfg>
<tc_version>Driver version:</tc_version>
aaronparker / Add-Administrator.ps1
Last active Jun 6, 2022
Adds the primary user of an Azure AD joined, Intune managed device to the local Administrators group
View Add-Administrator.ps1
Adds the primary user of the device to the local Administrators group
function Get-Key {
try {
$EnrollmentsKey = "HKLM:\SOFTWARE\Microsoft\Enrollments\"
$MatchingKey = foreach ($Key in (Get-ChildItem -Path $EnrollmentsKey | Where-Object { $_.PSIsContainer -eq $true })) {
aaronparker / update-binaries.yml
Created Apr 10, 2022
Updates binaries required for packaging the Microsoft 365 Apps
View update-binaries.yml
# Updates binaries required for packaging the Microsoft 365 Apps
# setup.exe from the Office Deployment Tool
# PSAppDeployToolkit to manage the install
# Microsoft Win32 Content Prep Tool (IntuneWinAppUtil.exe) to package into intunewin format
name: update-binaries
aaronparker / intune-release.yml
Last active Jul 31, 2022
Create a release for the Intune as-built
View intune-release.yml
name: Create documentation release
- "v*.*.*"
runs-on: ubuntu-latest
aaronparker / intune-backup.yml
Last active Jul 31, 2022
Backup an Intune tenant with IntuneCD
View intune-backup.yml
name: Backup Intune config
# Controls when the action will run.
- '.github/workflows/intune-backup.yml'
- '*'
aaronparker / UserFoldersStats.json
Created Oct 2, 2021
Azure Workbook to display metrics gathered by Invoke-UserFolderStats
View UserFoldersStats.json
"version": "Notebook/1.0",
"items": [
"type": 1,
"content": {
"json": "# OneDrive Known Folder Move\n\nUser folder inventory for planning implementation and tracking of [Known Folder Move]( with OneDrive for Business.\n\nUser folder details are gathered via Endpoint Analytics Proactive Remediations with [**Invoke-UserFolderStats.ps1**]( and forwarded to Log Analytics via the [Azure Monitor HTTP Data Collector API](\n",
"style": "info"
"name": "Intro"
aaronparker / Invoke-UserFolderStats.ps1
Last active Oct 2, 2021
Collect Windows user folder status and OneDrive Known Folder move and post to Azure Monitor
View Invoke-UserFolderStats.ps1
Get user folder sizes to determine impact on OneDrive Known Folder Move
Param (
[Parameter(Mandatory = $False)]
# Update with Log Analytics Workspace ID
[System.String] $CustomerId = "",
aaronparker / AppControl.kql
Last active Aug 29, 2021
Defender for Endpoint application control events
View AppControl.kql
// Defender for Endpoint query
| where Timestamp > ago(1d)
and ActionType startswith "AppControlExecutableAudited"
| where AccountName !has "system"
and AccountName !has "local service"
and AccountName !has "network service"
and AccountName !has "dwm-1"
| where FolderPath startswith "%OSDRIVE%"
//| order by Timestamp desc
aaronparker / Expand-GzipArchive.ps1
Last active Apr 10, 2021
Expand a Gzip file with PowerShell
View Expand-GzipArchive.ps1
Function Expand-GzipArchive {
[CmdletBinding(SupportsShouldProcess = $False)]
param (
[Parameter(Mandatory = $True, Position = 0)]
[ValidateScript( { If (Test-Path -Path $_ -PathType "Leaf") { $True } Else { Throw "Cannot find path $_." } })]
[System.String] $Path,
[Parameter(Mandatory = $False, Position = 1)]
aaronparker /
Last active Dec 8, 2020
Installing iStat Server for Linux on raspbian
# Commands used to install iStat Server for Linux on a Raspbery Pi running Raspbian
# Update Raspbian
# sudo apt-get update
# sudo apt-get upgrade
# Install dependencies
sudo apt-get install automake
sudo apt-get install libxml2-dev