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.
Read more…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.
Read more…PowerShell Resolve-Path Safe
How to resolve paths for non-existent files in PowerShell using GetUnresolvedProviderPathFromPSPath instead of Resolve-Path.
Read more…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.
Read more…PowerShell and cd..
Explains how PowerShell handles the cd.. command via a built-in function rather than special-casing the syntax.
Read more…Set-StrictMode and legacy code issues
How Set-StrictMode interacts with legacy PowerShell scripts and safe workarounds for missing variables and properties.
Read more…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.
Read more…where.exe PowerShell alternative
How to use Get-Command as a PowerShell native alternative to the where.exe utility for locating executables.
Read more…Kill Bill _W conhost
PowerShell script to kill all orphaned conhost.exe processes while preserving the one attached to the current session.
Read more…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.
Read more…