Skip to content

Instantly share code, notes, and snippets.

View bartvdbraak's full-sized avatar
🔘
making and breaking

Bart van der Braak bartvdbraak

🔘
making and breaking
View GitHub Profile
@bartvdbraak
bartvdbraak / enable-smb-guest.ps1
Created November 27, 2024 16:01
disable smb signing and guest logons on 24h2
# You might need adminstrator
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" -Name "AllowInsecureGuestAuth" -Value 1 -Type DWord
Set-GPRegistryValue -Name "EnableInsecureGuestLogons" -Key "HKLM\SOFTWARE\Policies\Microsoft\Windows\LanmanWorkstation" -ValueName "AllowInsecureGuestAuth" -Type Dword -Value 1
# if no RSAT
# Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\LanmanWorkstation" -Name "AllowInsecureGuestAuth" -Value 1 -Type DWord
Set-GPRegistryValue -Name "NetworkClientDigitallySignAlways" -Key "HKLM\SOFTWARE\Policies\Microsoft\Windows\LanmanWorkstation" -ValueName "RequireSecuritySignature" -Type Dword -Value 0
# if no RSAT
# Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" -Name "RequireSecuritySignature" -Value 0 -Type DWord
Write-Host "Attempting to download and install dependencies"
# Install VCLibs package
try {
Add-AppxPackage "https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx" -Verbose
} catch {
Write-Host "Failed to install VCLibs package. Error: $_" -ForegroundColor Red
exit 1
}
ref: https://github.com/element-hq/element-web/issues/28354
@bartvdbraak
bartvdbraak / azure-codesign-metrics.ipynb
Created March 7, 2025 11:30
Python Code/Notebook for getting metrics from Azure Trusted Signing using Diagnostic Settings exported to Azure Blob Storage (Codesign Transactions)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bartvdbraak
bartvdbraak / blender-windows.ps1
Last active July 2, 2025 16:46
Requirements for Building Blender on Windows
winget install --id=Git.Git --silent --accept-package-agreements --accept-source-agreements
winget install --id=Kitware.CMake --silent --accept-package-agreements --accept-source-agreements
winget install --id=Microsoft.VisualStudio.2022.Community --silent --accept-package-agreements --accept-source-agreements --override "--wait --quiet --add ProductLang En-us --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended"
git lfs install
git config --global user.name "My Name"
git config --global user.email "myemail@example.com"