Skip to content

Instantly share code, notes, and snippets.

View 7ep3s's full-sized avatar

Gabor Nemeth 7ep3s

  • Edinburgh, Scotland
View GitHub Profile
@7ep3s
7ep3s / Get-MSEvalCenterUrls.ps1
Created November 2, 2024 14:27
get windows eval center iso download links
$urls = @(
'https://www.microsoft.com/en-us/evalcenter/download-host-integration-server-2020',
'https://www.microsoft.com/en-us/evalcenter/download-hyper-v-server-2016',
'https://www.microsoft.com/en-us/evalcenter/download-hyper-v-server-2019',
'https://www.microsoft.com/en-us/evalcenter/download-lab-kit',
'https://www.microsoft.com/en-us/evalcenter/download-mem-evaluation-lab-kit',
'https://www.microsoft.com/en-us/evalcenter/download-microsoft-endpoint-configuration-manager',
'https://www.microsoft.com/en-us/evalcenter/download-microsoft-endpoint-configuration-manager-technical-preview',
'https://www.microsoft.com/en-us/evalcenter/download-microsoft-identity-manager-2016',
'https://www.microsoft.com/en-us/evalcenter/download-sharepoint-server-2013',
@7ep3s
7ep3s / get-IntuneAppDriverIssues.ps1
Last active September 30, 2024 16:43
get intune feature update readiness app/driver/other issues for a device with graph api
function get-IntuneAppDriverIssues($intuneDeviceID) {
#instantiate object from json response schema and values
function instantiate-fromreadinessData($response) {
$objects = $response.Values | foreach-object `
-Begin {
$propertyNames = @($response.Schema.Column)
} `
-Process {
$properties = [ordered] @{};
#this steals random song lyrics from azlyrics.com and uses text to speech to speak the lyrics at the given time.
#prefect as a backup alarm clock for the morning
Function Set-Alarm{
Param($Hour,$Minute,$text)
$voice = New-Object -ComObject Sapi.spvoice
$voice.rate = 0
@7ep3s
7ep3s / Set-WingetACL.ps1
Last active July 28, 2023 10:13
Set-WingetACL.ps1
$ACL_error_state = $true
function fix-WingetACL{
$Error.Clear()
$ErrorActionPreference = "SilentlyContinue"
$SYSTEM = ([wmi]"win32_SID.SID='S-1-5-18'").referenceddomainname + "\" +([wmi]"win32_SID.SID='S-1-5-18'").accountname
$ADMINISTRATORS = ([wmi]"win32_SID.SID='S-1-5-32-544'").referenceddomainname + "\" +([wmi]"win32_SID.SID='S-1-5-32-544'").accountname
$paths = get-childitem "C:\users\*\appdata\local\microsoft\winget" -Recurse | select -ExpandProperty fullname
ForEach ($path in $paths) {