
Compress-Archive: the files missing from the zip you sent
Support asked for the logs. You zipped the folder, attached it, and the reply says most of it is not there. The…
PowerShell for Windows administration: event logs, performance counters, remote checks and scripts that hold up in production.

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.…

Performance Monitor gives you graphs. Get-Counter gives you data - in the terminal, in variables, in CSV files, in scripts that run…

Windows Event Logs accumulate fast. On a busy server, the Application and System logs can hold hundreds of thousands of entries within…