# Troubleshooting & Logging

  • Primary logs: the script writes a consolidated log to %TEMP%\<scriptName>.log (typically %TEMP%\Win-Storage-Remediate.log) and a temp log %TEMP%\<scriptName>_temp.log during execution. On failure the script writes archive diagnostics into the %TEMP%\ArchivedLogs folder.
  • If a remediation run appears to do nothing, check the detection script output first (detection returns exit codes). Then inspect the device logs under the user's TEMP and System TEMP (C:\Windows\Temp) and the archive folder for diagnostic files.
  • For troubleshooting, run the remediation script manually with -DryRun -Verbosity Verbose and review the transcript/log file. Also check event viewer for related errors.