Skip to content

Troubleshoot

Mötz Jensen edited this page Nov 29, 2018 · 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).Path -Parent)

Unsplat a hashtable to a string with parameters

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