Skip to content

Instantly share code, notes, and snippets.

@HotCakeX
HotCakeX / Get-EdgeDriverSelenium.ps1
Created November 10, 2023 07:59
How to Install Edge WebDriver and Use Selenium With It
[System.String]$RegistryPath = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\msedge.exe'
[System.String]$SeleniumDirectory = 'C:\EdgeSelenium'
# Check to see if Microsoft Edge is installed
if (-not (Test-Path -Path $RegistryPath)) {
# Write an error if Edge was not found
Write-Error -Message 'Microsoft Edge needs to be installed!'
# Exit the script and set a return code
exit 1
@HotCakeX
HotCakeX / Scan-LOLDrivers.ps1
Created May 20, 2023 14:33 — forked from IISResetMe/Scan-LOLDrivers.ps1
it works - but use with caution :) it's a bit noisy and I think it's broken
function Scan-LOLDrivers {
param(
[Parameter(Mandatory = $true)]
[string]$path
)
Add-Type -TypeDefinition @"
using System;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
@HotCakeX
HotCakeX / Windows ReFS versions.en.md
Created January 25, 2023 23:27 — forked from 0xbadfca11/00_README.md
Windows ReFS versions

Version number is reported by fsutil fsinfo refsinfo, available on Windows 10 and Windows Server 2016.

ReFS 1.1

  • Version of formatted by Windows Server 2012.
  • Version 1.1 is used already in Windows Server 8 Beta. I have never seen version 1.0.
  • Can use and store alternate data streams, when mount on 8.1/2012 R2 or later.

ReFS 1.2

  • Version of formatted by Windows 8.1, Windows 10 v1507 to v1607, Windows Server 2012 R2, and when specified ReFSv1 on Windows Server 2016 or later.
  • Cannot use alternate data streams, when mount on 2012.