Powershell – Search and Replace multiple text strings in file/variable

A common, but not so often, requirement in some scenarios is to search and replace one or multiple text strings in variables or files. This can be quite easily achievied by using a bit of Powershell code. Read More …

SQL Server – SQL Attach DB: Could not open new database [New Question]

A quick question, answered on Heelpbook, about “SQL Server – SQL Attach DB: Could not open new database”, an error quite common while moving or migrating SQL Server databases between servers. Read More …

Powershell – Extract Files from ZIP Archive

Starting with PowerShell 5, cmdlets like Expand-Archive can extract the content of ZIP files to disk. However, you can always extract only the entire archive. Luckily, there are other methods to extract, not only, from .zip archives, specified files or folders, on Windows-based systems. Read More …

Getting Let’s Encrypt Certificate using DNS-01 challenge with acme-dns-certbot-joohoi or acme.sh

Getting Let’s Encrypt Certificate using DNS-01 challenge with acme-dns-certbot-joohoi or acme.sh, in manual or automated way, using a cron job and/or DNS APIs, if available Read More …

How to use custom UserAgent with Invoke-WebRequest on Powershell? [New Question]

A quick question, answered on Heelpbook, about “How to user custom UserAgent with Invoke-WebRequest on Powershell?”, sometime useful while testing some code interacting with websites using Powershell code. Read More …