curl in PowerShell: why curl is not curl.exe and how to call an API
In Windows PowerShell, curl runs Invoke-WebRequest, not curl.exe. Call the real curl, send JSON without losing quotes and translate to Invoke-RestMethod.
PowerShell for Windows administration: event logs, performance counters, remote checks and scripts that hold up in production.
In Windows PowerShell, curl runs Invoke-WebRequest, not curl.exe. Call the real curl, send JSON without losing quotes and translate to Invoke-RestMethod.

A server restarted at 3 AM and the System log shows a Critical event you do not see every day: Kernel-Power, Event…

Support asked for the logs. You zipped the folder, attached it, and the reply says most of it is not there. The…

Windows counts time from 1601, Unix counts it from 1970, and .NET counts its own ticks from the year 1. A file…

Quick answer ConvertTo-Json turns a PowerShell object into JSON text and ConvertFrom-Json turns JSON text back into an object. Both work in…

The two commands in the title answer the same question from opposite ends of the machine. Get-FileHash is a PowerShell cmdlet: it…

Enter-PSSession and WinRM in practice: which PowerShell answers the call, why remote objects lose their methods, and why local variables arrive empty.

Windows services are the one part of a server that keeps running after everyone logs off, and PowerShell reads and writes them…

PowerShell 7 installs beside Windows PowerShell 5.1, it does not replace it. How to upgrade with winget, the MSI, the ZIP or the MSIX package, and what changes after 7.6.

The script runs fine from your terminal. You create a scheduled task, it fires at the right time - and produces nothing.…