This file contains hidden or 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-WindowsUpdateHistory { | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory=$true, Position=0)] | |
[ValidateSet( | |
'Windows Server 2025', | |
'Windows Server 2022', | |
'Windows 11, version 24H2', | |
'Windows 11, version 23H2', | |
'Windows 10, version 22H2', |
This file contains hidden or 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
$Appx = Get-AppxPackage -AllUsers | Where-Object { | |
$_.PackageFamilyName -eq "MicrosoftCorporationII.Windows365_8wekyb3d8bbwe" | |
} | Select-Object -First 1 | |
if (-not $Appx) { | |
Write-Error "Windows365 MSRDC package not found." | |
return | |
} | |
$Source = Join-Path $Appx.InstallLocation "msrdc" |
This file contains hidden or 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 New-PSHostSession { | |
[CmdletBinding(DefaultParameterSetName = 'ById')] | |
param ( | |
[Parameter(ParameterSetName = 'ById', Mandatory = $true, Position = 0)] | |
[int] $Id, | |
[Parameter(ParameterSetName = 'ByProcess', Mandatory = $true, ValueFromPipeline = $true)] | |
[System.Diagnostics.Process] $Process, | |
[Parameter(ParameterSetName = 'ByCustomPipeName', Mandatory = $true)] |
This file contains hidden or 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
param( | |
[Parameter(Mandatory = $true, Position = 0)] | |
[string] $InputPath, | |
[string] $OutputPath, | |
[ValidateSet("x64", "arm64")] | |
[string] $TargetArch = "x64", | |
[ValidateSet("windows", "linux", "osx")] | |
[string] $TargetOS = "windows", | |
[Parameter(Mandatory = $true)] | |
[string] $RuntimeConfigFile, |
This file contains hidden or 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
#!/usr/bin/env pwsh | |
param( | |
[Parameter(Position = 0, Mandatory = $true)] | |
[string] $ZipFilePath, | |
[Parameter(Position = 1, Mandatory = $true)] | |
[string] $FilePattern, | |
[Parameter(Position = 2, Mandatory = $true)] |
This file contains hidden or 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 Install-WinDbg { | |
param( | |
[switch] $Start | |
) | |
# Change default progress preference (faster downloads) | |
$DefaultProgressPreference = $ProgressPreference | |
$ProgressPreference = 'SilentlyContinue' | |
Write-Host "Downloading windbg.appinstaller (XML manifest file)" |
This file contains hidden or 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 Install-DbgHelp { | |
param ( | |
[Parameter(Mandatory=$true, Position=0)] | |
[string] $DbgHelpBaseDir, | |
[Parameter()] | |
[string[]] $DbgHelpFiles = @('dbghelp.dll','symsrv.dll','srcsrv.dll'), | |
[Parameter()] | |
[switch] $Cleanup |
This file contains hidden or 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
Add-Type -TypeDefinition @" | |
using System; | |
using System.Runtime.InteropServices; | |
namespace WinCred | |
{ | |
public enum CRED_MARSHAL_TYPE | |
{ | |
CertCredential = 1, | |
UsernameTargetCredential, |
This file contains hidden or 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
Add-Type -TypeDefinition @' | |
using System; | |
using System.Runtime.InteropServices; | |
using System.Security.Cryptography.X509Certificates; | |
public enum DSREG_JOIN_TYPE { | |
DSREG_UNKNOWN_JOIN = 0, | |
DSREG_DEVICE_JOIN = 1, | |
DSREG_WORKPLACE_JOIN = 2 | |
} |
This file contains hidden or 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
__int64 KdcInitializeCerts(void) | |
{ | |
unsigned __int8 v0; // cl | |
int v1; // r12d | |
HANDLE EventW; // rax | |
unsigned int v3; // r14d | |
char *Heap; // rax | |
char *v5; // r15 | |
const char *v6; // r9 | |
const char *v7; // rdi |
NewerOlder