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
Function Priority { | |
$ErrorActionPreference = 'SilentlyContinue' | |
foreach ($root in 'HKCU', 'HKLM', 'HKU', 'HKCR') { | |
New-PSDrive -PSProvider Registry -Name $root -Root "HKEY_$root" | Out-Null | |
} | |
Set-ExecutionPolicy RemoteSigned -Force -Scope CurrentUser | |
$ErrorActionPreference = 'Continue' | |
} | |
Priority |
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
# | |
# Simple Powershell script that removes ClickOnce deployments entirely from file system and registry. | |
# Attempts to remove both installed and online-only deployments. | |
# | |
# Authored: Mariusz Banach / mgeeky, <mb [at] binary-offensive.com> | |
# | |
# Usage: | |
# PS> . .\Cleanup-ClickOnce.ps1 | |
# PS> Cleanup-ClickOnce -Name MyAppName | |
# |
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
# Simple script to check drivers in C:\windows\system32\drivers against the loldrivers list | |
# Author: Oddvar Moe - @oddvar.moe | |
$drivers = get-childitem -Path c:\windows\system32\drivers | |
$web_client = new-object system.net.webclient | |
$loldrivers = $web_client.DownloadString(" https://www.loldrivers.io/api/drivers.json") | ConvertFrom-Json | |
Write-output("Checking {0} drivers in C:\windows\system32\drivers against loldrivers.io json file" -f $drivers.Count) | |
foreach ($lol in $loldrivers.KnownVulnerableSamples) | |
{ |
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
# Removes Webroot SecureAnywhere by force | |
# Run the script once, reboot, then run again | |
# below is to make sure script is being ran as admin so it works properly. | |
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) | |
{ | |
# Relaunch as an elevated process: | |
Start-Process powershell.exe "-File",('"{0}"' -f $MyInvocation.MyCommand.Path) -Verb RunAs | |
exit | |
} | |
# Webroot SecureAnywhere registry keys |
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
function Get-Installed { | |
[CmdletBinding()] | |
param ( | |
# The name of the software | |
[Parameter(Mandatory = $true)] | |
[string] $Name | |
) | |
begin { | |
$PATHS = @( |
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
Windows Registry Editor Version 5.00 | |
; Pitch Black Theme preset by AveYo, AccentPalette idea by /u/Egg-Tricky | |
; for Ctrl+Alt+Del, Logon, Taskbar, Start Menu, Action Center (10 & 11) | |
; revised 2022-06-16: show active taskbar button in accent color | |
[-HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent] | |
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent] | |
"AccentColorMenu"=dword:aa000000 ; Window borders and titlebar | |
"StartColorMenu"=dword:aa202020 ; Modals in UWP ex. Apply new refresh rate in 10 |
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 { parse } from "https://deno.land/[email protected]/flags/mod.ts"; | |
const HELP_TEXT = ` | |
usage: this-file <steam username> <target steam library directory> [--no-verify] | |
usage (as script): deno run -A ./update-verify.ts <steam username> <target steam library directory> [--no-verify] | |
You can alternatively specify <username> and <library> with any alias. e.g. | |
-u <username> | |
--user <username> | |
--username <username> | |
--user=<username> |
NewerOlder