Open in the explorer

LogHostOutputToStdStreams

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › PSAppDeployToolkit › Toolkit
Supported on
At least Windows Server 2016, Windows 10 Version 1607
ADMX file
PSAppDeployToolkit.admx
Internal name
PSAppDeployToolkit/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
StateValue written
EnabledREG_SZ = True
DisabledDeletes 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 String

Disable

# Disable: PSAppDeployToolkit/LogHostOutputToStdStreams
$k = 'HKLM:\SOFTWARE\Policies\PSAppDeployToolkit\Config\Toolkit'
Remove-ItemProperty -Path $k -Name 'LogHostOutputToStdStreams' -ErrorAction SilentlyContinue

Revert to "Not configured"

# Revert to "Not configured": PSAppDeployToolkit/LogHostOutputToStdStreams
$k = 'HKLM:\SOFTWARE\Policies\PSAppDeployToolkit\Config\Toolkit'
Remove-ItemProperty -Path $k -Name 'LogHostOutputToStdStreams' -ErrorAction SilentlyContinue

Application

PSAppDeployToolkit (PSAppDeployToolkit) — October 2026 templates

October 2026 templates from pl4nty/web-admx-tool.