View Import-GPO.ps1
This file contains 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
# Import Group Policy Objects | |
$Path = "C:\Temp" | |
$Destination = "C:\Temp\Prod-GPO" | |
Expand-Archive -Path "$Path\Prod-GPO-backup.zip" -DestinationPath $Path | |
$BackupList = Get-ChildItem -Path $Destination -Directory -Exclude "manifest.xml" | |
foreach ($item in $BackupList) { | |
[System.Xml.XmlDocument] $XmlFile = Get-Content -Path "$($item.FullName)\gpreport.xml" -ErrorAction "Stop" | |
$BackupID = $item.Name -replace "{|}", "" | |
$BackupID = $item.Name -replace "{", "" -replace "}", "" | |
$GpoName = "Test-$($XmlFile.GPO.Name)" |
View Export-GPO.ps1
This file contains 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
<# | |
Export GPO objects from a lab/test domain and zip | |
#> | |
# Local path over RDP connection | |
$Destination = "C:\Backup" | |
# Create backups, zip file and copy to client path | |
$Path = "C:\Temp\Prod-GPO" | |
$Domain = "home.stealthpuppy.com" |
View Install-MicrosoftFSLogixApps.ps1
This file contains 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
#Requires -Modules Evergreen | |
<# | |
.SYNOPSIS | |
Installs the Microsoft FSLogix Apps agent | |
#> | |
[CmdletBinding()] | |
param ( | |
[System.String] $Path = "$Env:SystemDrive\Apps\Microsoft\FSLogix", | |
[System.String] $Version | |
) |
View text.xml
This file contains 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
<?xml version="1.0" encoding="utf-16"?> | |
<root> | |
<config> | |
<tc_tipfordevcfg>Please set the switch to Windows</tc_tipfordevcfg> | |
<tc_config>Configuration</tc_config> | |
<tc_exit>Quit</tc_exit> | |
<tc_version>Driver version:</tc_version> | |
<tc_web></tc_web> | |
<tc_ok>OK</tc_ok> | |
<tc_restore>Reset</tc_restore> |
View Add-Administrator.ps1
This file contains 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
<# | |
Adds the primary user of the device to the local Administrators group | |
#> | |
[CmdletBinding()] | |
param() | |
function Get-Key { | |
try { | |
$EnrollmentsKey = "HKLM:\SOFTWARE\Microsoft\Enrollments\" | |
$MatchingKey = foreach ($Key in (Get-ChildItem -Path $EnrollmentsKey | Where-Object { $_.PSIsContainer -eq $true })) { |
View update-binaries.yml
This file contains 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
# 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 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
on: |
View intune-release.yml
This file contains 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 |
View intune-backup.yml
This file contains 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: | |
- '*' |
View UserFoldersStats.json
This file contains 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" |
View Invoke-UserFolderStats.ps1
This file contains 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 = "", |
NewerOlder