From 4a35911a6803045198472824d97703ffc4180dee Mon Sep 17 00:00:00 2001 From: Raymond Piller Date: Thu, 12 Jan 2023 02:18:24 -0600 Subject: [PATCH] Added details --- README.md | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c2cbc11..e06885a 100644 --- a/README.md +++ b/README.md @@ -178,13 +178,19 @@ $PSDefaultParameterValues.Set_Item('Write-Log:DisableLogging', $false) - Type: `[IO.FileInfo]` - Default: *Something like: `%TEMP%\PowerShell Desktop 5.1.19041.1682 Internal.log`* - ```powershell - [IO.Path]::Combine($env:Temp, ('PowerShell {0} {1} {2}.log' -f @( - $PSVersionTable.PSEdition - $PSVersionTable.PSVersion - $MyInvocation.CommandOrigin - )) - ``` + +To get the exact path, run this: + +```powershell +[IO.Path]::Combine($env:Temp, ('PowerShell {0} {1} {2}.log' -f @( + $PSVersionTable.PSEdition + $PSVersionTable.PSVersion + $MyInvocation.CommandOrigin +))) +``` + +> ℹ: Your `$MyInvocation.CommandOrigin` might vary between a few things, such as `Internal` or `Runspace`. +> If you want to know exactly where your log file is, configure it ... The default file name will vary depending on your environment. Change the location by providing the full path to the log file.