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.
Practical guides for system administrators - Windows, PowerShell, Active Directory, networking, and infrastructure.
In Windows PowerShell, curl runs Invoke-WebRequest, not curl.exe. Call the real curl, send JSON without losing quotes and translate to Invoke-RestMethod.

UsoClient.exe is the command-line client of the Update Session Orchestrator, the Windows component that schedules scans, downloads and installs. Admins use it…
ExifTool is a free, portable command-line program that reads and writes the metadata hidden inside files: GPS coordinates and camera details in…

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…
A domain stops resolving and the first guess is DNS. Often it is not DNS: the registration expired, the registry put a…

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

Copy-VMGuestFile is the PowerCLI cmdlet that moves a file between your workstation and the inside of a virtual machine. It does not…

Typing winget install git into a terminal and watching an installer appear is the whole of most people’s experience of the Windows…

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