LogHostOutputToStdStreams
Explanation
Specify if console log messages should bypass PowerShell's subsystems and be sent direct to stdout/stderr.
This only applies if "LogWriteToHost" is true, and the script is being ran in a ConsoleHost (not the ISE, or another host).
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\PSAppDeployToolkit\Config\Toolkit- Value name
LogHostOutputToStdStreams
| State | Value written |
|---|---|
| Enabled | REG_SZ = True |
| Disabled | Deletes the value |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: PSAppDeployToolkit/LogHostOutputToStdStreams
$k = 'HKLM:\SOFTWARE\Policies\PSAppDeployToolkit\Config\Toolkit'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'LogHostOutputToStdStreams' -Value 'True' -Type StringDisable
# Disable: PSAppDeployToolkit/LogHostOutputToStdStreams
$k = 'HKLM:\SOFTWARE\Policies\PSAppDeployToolkit\Config\Toolkit'
Remove-ItemProperty -Path $k -Name 'LogHostOutputToStdStreams' -ErrorAction SilentlyContinueRevert to "Not configured"
# Revert to "Not configured": PSAppDeployToolkit/LogHostOutputToStdStreams
$k = 'HKLM:\SOFTWARE\Policies\PSAppDeployToolkit\Config\Toolkit'
Remove-ItemProperty -Path $k -Name 'LogHostOutputToStdStreams' -ErrorAction SilentlyContinueApplication
PSAppDeployToolkit (PSAppDeployToolkit) — October 2026 templates
October 2026 templates from pl4nty/web-admx-tool.