Command for CLI to create logs?

Hello. I started experimenting with the CLI but I found out that this way the logs are not generated automatically. What is the command for powershell to create plot logs?

Thanks.

Did you try a Google search?

One way is Start-Transcript, like so: Start-Transcript (Microsoft.PowerShell.Host) - PowerShell | Microsoft Docs … some others are here:

https://4sysops.com/archives/writing-to-files-with-powershell-redirect-tee-out-file-set-content/

I also recommend installing the latest PowerShell from GitHub as well.

1 Like

This mini series is worth a watch. He links his Github in the description

2 Likes