Skip to content

Troubleshoot

Mötz Jensen edited this page Jan 8, 2020 · 5 revisions

Gathering logs

Get-PSFMessage -Errors | Format-List
Get-PSFMessage -Errors | Format-List | Out-file c:\temp\errors.txt

Get-PSFMessage -Level InternalComment | Format-List
Get-PSFMessage -Level InternalComment | Format-List | out-file C:\temp\sqlcommands.txt

Locate the folder where the module is installed

explorer.exe (Split-Path $(Get-Module d365fo.tools -ListAvailable | Select-Object -First 1).Path -Parent)

Unsplat a hashtable to a string with parameters

($HashArray.Keys | ForEach-Object {"-$($_) `"$($HashArray.Item($_))`""}) -Join " "
Clone this wiki locally