This file contains hidden or 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
name: Create documentation release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
document-release: | |
runs-on: ubuntu-latest |
This file contains hidden or 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
name: Backup Intune config | |
# Controls when the action will run. | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- '.github/workflows/intune-backup.yml' | |
tags-ignore: | |
- '*' |
This file contains hidden or 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
{ | |
"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](https://docs.microsoft.com/en-us/onedrive/redirect-known-folders) with OneDrive for Business.\n\nUser folder details are gathered via Endpoint Analytics Proactive Remediations with [**Invoke-UserFolderStats.ps1**](https://github.com/Insentra/mem-foundations/blob/main/device-reporting/scripts/Invoke-UserFolderStats.ps1) and forwarded to Log Analytics via the [Azure Monitor HTTP Data Collector API](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/data-collector-api).\n", | |
"style": "info" | |
}, | |
"name": "Intro" |
This file contains hidden or 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
<# | |
.SYNOPSIS | |
Get user folder sizes to determine impact on OneDrive Known Folder Move | |
#> | |
[CmdletBinding()] | |
Param ( | |
[Parameter(Mandatory = $False)] | |
# Update with Log Analytics Workspace ID | |
[System.String] $CustomerId = "", |
This file contains hidden or 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
// Defender for Endpoint query | |
DeviceEvents | |
| 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 |
This file contains hidden or 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 Expand-GzipArchive { | |
[CmdletBinding(SupportsShouldProcess = $False)] | |
param ( | |
[Parameter(Mandatory = $True, Position = 0)] | |
[ValidateNotNullOrEmpty()] | |
[ValidateScript( { If (Test-Path -Path $_ -PathType "Leaf") { $True } Else { Throw "Cannot find path $_." } })] | |
[System.String] $Path, | |
[Parameter(Mandatory = $False, Position = 1)] | |
[ValidateNotNullOrEmpty()] |
This file contains hidden or 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
# https://bjango.com/help/istat3/linuxpackages/ | |
# 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 |
This file contains hidden or 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
# Install the Azure AD module and log into Azure AD | |
Install-Module AzureADPreview | |
Connect-AzureAD | |
# Get details of the specific account | |
$user = Get-AzureADUser -SearchString "[email protected]" | |
# View password policy on the acccount | |
$user | Select-Object @{N = "PasswordNeverExpires"; E = {$_.PasswordPolicies -contains "DisablePasswordExpiration"}} |
This file contains hidden or 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
# Connect to Office 365 | |
Connect-MsolService | |
# Get specific user accounts | |
Get-MsolUser -UserPrincipalName "[email protected]" | |
# Get license SKUs | |
Get-MsolAccountSku | |
# EMS licenses |
This file contains hidden or 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
<# | |
.SYNOPSIS | |
Get digital signatures from files in a target folder. | |
.DESCRIPTION | |
Gets digital signatures from .exe and .dll files from a specified path and sub-folders. | |
Retreives the certificate thumbprint, certificate name, certificate expiry, certificate validity and file path and outputs the results. | |
Output includes files that are not signed. | |
.NOTES |