Tag:powershell
All the articles with the tag "powershell".
Efficient Base64 conversion in PowerShell
Chunk-based Base64 file conversion in PowerShell that avoids loading the entire file into memory for large files.
How to reach unreachable or copy files to RDP - Part 2
Follow-up on clipboard-based RDP file transfer, describing clipboard hang issues and a planned chunked clipboard watcher solution.
PowerShell Resolve-Path Safe
How to resolve paths for non-existent files in PowerShell using GetUnresolvedProviderPathFromPSPath instead of Resolve-Path.
Name collisions, PSBase and other mad PowerShell internals
Explores PowerShell name collisions between XML attributes and .NET properties, and how PSBase and PSObject.Members resolve them.
PowerShell and cd..
Explains how PowerShell handles the cd.. command via a built-in function rather than special-casing the syntax.
Set-StrictMode and legacy code issues
How Set-StrictMode interacts with legacy PowerShell scripts and safe workarounds for missing variables and properties.
How to reach unreachable or copy files to RDP
Technique for transferring binary files to an RDP server with no drive sharing by encoding them as Base64 via the clipboard.
where.exe PowerShell alternative
How to use Get-Command as a PowerShell native alternative to the where.exe utility for locating executables.
Kill Bill _W conhost
PowerShell script to kill all orphaned conhost.exe processes while preserving the one attached to the current session.
git hook proxy
Final implementation of a PowerShell git hook proxy that extracts and runs hooks from the repo for both client and server sides.