File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -178,13 +178,19 @@ $PSDefaultParameterValues.Set_Item('Write-Log:DisableLogging', $false)
178178
179179- Type: ` [IO.FileInfo] `
180180- Default: * Something like: ` %TEMP%\PowerShell Desktop 5.1.19041.1682 Internal.log ` *
181- ``` powershell
182- [IO.Path]::Combine($env:Temp, ('PowerShell {0} {1} {2}.log' -f @(
183- $PSVersionTable.PSEdition
184- $PSVersionTable.PSVersion
185- $MyInvocation.CommandOrigin
186- ))
187- ```
181+
182+ To get the exact path, run this:
183+
184+ ``` powershell
185+ [IO.Path]::Combine($env:Temp, ('PowerShell {0} {1} {2}.log' -f @(
186+ $PSVersionTable.PSEdition
187+ $PSVersionTable.PSVersion
188+ $MyInvocation.CommandOrigin
189+ )))
190+ ```
191+
192+ > ℹ: Your ` $MyInvocation.CommandOrigin ` might vary between a few things, such as ` Internal ` or ` Runspace ` .
193+ > If you want to know exactly where your log file is, configure it ...
188194
189195The default file name will vary depending on your environment.
190196Change the location by providing the full path to the log file.
You can’t perform that action at this time.
0 commit comments