Skip to content

Instantly share code, notes, and snippets.

@emilwojcik93
emilwojcik93 / Install-NvidiaApp.ps1
Last active June 6, 2025 13:51
Install-NvidiaApp
<#
.SYNOPSIS
This script automates the detection of an NVIDIA GPU, retrieves the latest NVIDIA App installer (either Enterprise or Public edition), and facilitates its download and installation with customizable parameters.
.DESCRIPTION
This script efficiently manages the process of downloading and installing the latest NVIDIA App by:
- Scraping the NVIDIA App webpage to locate the most recent installer.
- Verifying the existence and size of the installer file locally.
- Confirming the presence of an NVIDIA GPU on the machine prior to installation.
- Supporting a dry run mode to simulate operations without actual downloading or installation.
- Allowing the user to choose between the Enterprise and Public editions of the NVIDIA App.
@asheroto
asheroto / README.md
Last active September 24, 2026 03:03
Bypass Windows 11 Upgrade Assistant / PC Health Check / TPM and CPU Settings. Ignore PC Health Check results.

Bypass Windows 11 Upgrade Assistant / Setup Hardware Checks (TPM, CPU, RAM)

This PowerShell script allows you to bypass TPM 2.0, unsupported CPU, and memory checks enforced by the Windows 11 Upgrade Assistant and setup.exe from Windows installation media. It eliminates common upgrade blocks such as:

  • This PC doesn't currently meet Windows 11 system requirements.
  • TPM 2.0 must be supported and enabled on this PC.
  • The processor isn't currently supported for Windows 11.

What It Does

@pvanderwoude
pvanderwoude / Remediate-LocalAdministrators.ps1
Created September 28, 2020 14:02
Remediate-LocalAdministrators
#Define variables
$currentUser = (Get-CimInstance Win32_ComputerSystem).Username -replace '.*\\'
$localAdministrators = @("[YourGlobalAdminRoleSid]","[YourDeviceAdminRoleSid]") #Adjust to your local administrators
try {
$administratorsGroup = ([ADSI]"WinNT://$env:COMPUTERNAME").psbase.children.find("Administrators")
$administratorsGroupMembers = $administratorsGroup.psbase.invoke("Members")
foreach ($administratorsGroupMember in $administratorsGroupMembers) {
$administrator = $administratorsGroupMember.GetType().InvokeMember('Name','GetProperty',$null,$administratorsGroupMember,$null)
if (($administrator -ne "Administrator") -and ($administrator -ne $currentUser)) {
@pvanderwoude
pvanderwoude / Detect-LocalAdministrators.ps1
Last active January 14, 2026 22:29
Detect-LocalAdministrators
#Define variables
$localAdministrators = @()
$memberCount = 0
$numberLocalAdministrators = 4 #Adjust to your number of administrators
try {
$currentUser = (Get-CimInstance Win32_ComputerSystem).Username -replace '.*\\'
$administratorsGroup = ([ADSI]"WinNT://$env:COMPUTERNAME").psbase.children.find("Administrators")
$administratorsGroupMembers= $administratorsGroup.psbase.invoke("Members")
foreach ($administrator in $administratorsGroupMembers) {